|
Gromacs
2026.0-dev-20251110-920b6d1
|
#include <gromacs/restraint/restraintmdmodule_impl.h>
IMDModule implementation for RestraintMDModule.
Provides IMDModule interface.
Public Member Functions | |
| RestraintMDModuleImpl (std::shared_ptr< gmx::IRestraintPotential > restraint, const std::vector< int > &sites) | |
| Wrap an object implementing IRestraintPotential. More... | |
| void | initForceProviders (ForceProviders *forceProviders) |
| Implement IMDModule interface. More... | |
| RestraintMDModuleImpl (RestraintMDModuleImpl &&) noexcept=default | |
| Allow moves. | |
| RestraintMDModuleImpl & | operator= (RestraintMDModuleImpl &&) noexcept=default |
Public Attributes | |
|
std::unique_ptr < RestraintForceProvider > | forceProvider_ |
| handle to RestraintForceProvider implementation | |
| gmx::RestraintMDModuleImpl::RestraintMDModuleImpl | ( | std::shared_ptr< gmx::IRestraintPotential > | restraint, |
| const std::vector< int > & | sites | ||
| ) |
Wrap an object implementing IRestraintPotential.
| restraint | handle to restraint to wrap. |
| sites | list of sites for framework to process for restraint force calculator. |
| void gmx::RestraintMDModuleImpl::initForceProviders | ( | ForceProviders * | forceProviders | ) |
Implement IMDModule interface.
| forceProviders | force module manager in the force record that will call this. |
The calling code must ensure that this object stays alive as long as forceProviders needs the RestraintForceProvider, since forceProviders can't. Typically that is the duration of a do_md() call.
1.8.5