Collective Variables Module - Developer Documentation
|
This contains the current state of each feature for each object. More...
#include <colvardeps.h>
Public Member Functions | |
feature_state (bool a, bool e) | |
Public Attributes | |
bool | available |
Feature may be enabled, subject to possible dependencies. | |
bool | enabled |
int | ref_count |
std::vector< int > | alternate_refs |
This contains the current state of each feature for each object.
std::vector<int> colvardeps::feature_state::alternate_refs |
List of features that were enabled by this one as part of an alternate requirement (for ref counting purposes) This is necessary because we don't know which feature in the list we enabled, otherwise
bool colvardeps::feature_state::enabled |
Currently enabled - this flag is subject to change dynamically TODO consider implications for dependency solving: anyone who disables it should trigger a refresh of parent objects
int colvardeps::feature_state::ref_count |
Number of features requiring this one as a dependency When it falls to zero: