SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Collective variable manager. More...
#include <CVManager.h>
Public Member Functions | |
void | AddCV (CollectiveVariable *cv) |
Adds a CV to the CV manager. More... | |
void | ClearCVs () |
Clears CVs from CV manager. More... | |
CVList | GetCVs (const std::vector< unsigned int > &mask=std::vector< unsigned int >()) const |
Get CV iterator. More... | |
Static Public Member Functions | |
static void | AddCVtoMap (const std::string &name, unsigned int id) |
Register CV name with map. More... | |
static int | LookupCV (const Json::Value &cv, const std::string &path) |
Get CV id from map. More... | |
Private Attributes | |
std::vector< CollectiveVariable * > | cvs_ |
List of collective variables. | |
Static Private Attributes | |
static std::map< std::string, unsigned int > | cvmap_ = {} |
Map between CV names and ID's. | |
Collective variable manager.
CVManager is a class used to manage collective variables (CVs) and how they are exposed to methods. A metohd may wish to bias on a subset of available CVs. The CVManager provides a seamless interface to masking unwanted CVs and providing a suitable iterator which can be used to iterate through the desired CVs.
CVManager is also responsible for maintaining the lifetime of the CV objects it contains.
Definition at line 42 of file CVManager.h.
|
inline |
Adds a CV to the CV manager.
cv | Pointer to collective variable. |
Definition at line 58 of file CVManager.h.
References cvs_.
|
inlinestatic |
Register CV name with map.
name | Name of CV to register. |
id | ID to associate with name. |
Definition at line 101 of file CVManager.h.
References cvmap_.
Referenced by SSAGES::ResourceHandler::Build().
|
inline |
Clears CVs from CV manager.
Definition at line 68 of file CVManager.h.
References cvs_.
|
inline |
Get CV iterator.
mask | Vector mask which contains the indices of which CV to include in the container. |
Definition at line 81 of file CVManager.h.
References cvs_.
Referenced by SSAGES::DirectForwardFlux::CheckForInterfaceCrossings(), SSAGES::Logger::PostIntegration(), SSAGES::ABF::PostIntegration(), SSAGES::ANN::PostIntegration(), SSAGES::BFS::PostIntegration(), SSAGES::CFF::PostIntegration(), SSAGES::DirectForwardFlux::PostIntegration(), SSAGES::ElasticBand::PostIntegration(), SSAGES::FiniteTempString::PostIntegration(), SSAGES::Meta::PostIntegration(), SSAGES::Swarm::PostIntegration(), SSAGES::Umbrella::PostIntegration(), SSAGES::Hook::PostIntegrationHook(), SSAGES::Hook::PostSimulationHook(), SSAGES::Logger::PreSimulation(), SSAGES::ABF::PreSimulation(), SSAGES::ANN::PreSimulation(), SSAGES::BFS::PreSimulation(), SSAGES::CFF::PreSimulation(), SSAGES::ForwardFlux::PreSimulation(), SSAGES::Meta::PreSimulation(), SSAGES::StringMethod::PreSimulation(), SSAGES::Umbrella::PreSimulation(), and SSAGES::Hook::PreSimulationHook().
|
inlinestatic |
Get CV id from map.
Definition at line 112 of file CVManager.h.
References cvmap_.
Referenced by SSAGES::ResourceHandler::Build().