Split off implementation details of MdModuleNotification
authorChristian Blau <cblau@gwdg.de>
Wed, 4 Mar 2020 11:22:34 +0000 (12:22 +0100)
committerChristian Blau <cblau@gerrit.gromacs.org>
Thu, 5 Mar 2020 09:59:35 +0000 (10:59 +0100)
commit64eb67be136a5806341264a9b4b6b47eaea1184f
treed9508ee53b821ca7d66b96b815e67514b493428b
parentb709a6fa672f7fcde46aa3e5b0863a23d0443f75
Split off implementation details of MdModuleNotification

For better readability and testing, moved the MdModuleNotification and
MdModulesNotifier into separate files, hiding away the implementation
details of the complex general callback-infrastructure and exposing more
clearly the callbacks that MdModules can sign up to.

Moved tests into correct directory.

Moved life-line explaining the notification machinery in MDModules from
MdModulesNotification to MdModuleNotifier, where it is better suited.

Change-Id: I0a73f99e450873903a888bcc04228737d0b814f3
src/gromacs/utility/mdmodulenotification-impl.h [new file with mode: 0644]
src/gromacs/utility/mdmodulenotification.h
src/gromacs/utility/tests/CMakeLists.txt
src/gromacs/utility/tests/mdmodulenotification-impl.cpp [moved from src/programs/mdrun/tests/mdmodulenotification.cpp with 97% similarity]
src/programs/mdrun/tests/CMakeLists.txt