OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::ConstraintStamp Class Reference

#include <ConstraintStamp.hpp>

Inheritance diagram for OpenMD::ConstraintStamp:
OpenMD::DataHolder

Public Member Functions

 ConstraintStamp ()
 
virtual ~ConstraintStamp ()
 
void setMembers (std::vector< int > members)
 
int getA ()
 
int getB ()
 
virtual void validate ()
 
- Public Member Functions inherited from OpenMD::DataHolder
 DataHolder ()
 
virtual ~DataHolder ()
 
template<class T >
void assign (const std::string &keyword, T val)
 

Private Member Functions

 DeclareParameter (ConstrainedDistance, RealType)
 
 DeclareParameter (PrintConstraintForce, bool)
 

Private Attributes

int a
 
int b
 

Additional Inherited Members

- Protected Types inherited from OpenMD::DataHolder
typedef std::map< std::string, ParameterBase * > ParamMap
 
- Protected Attributes inherited from OpenMD::DataHolder
ParamMap parameters_
 
std::set< std::string > deprecatedKeywords_
 

Detailed Description

Definition at line 49 of file ConstraintStamp.hpp.

Constructor & Destructor Documentation

◆ ConstraintStamp()

OpenMD::ConstraintStamp::ConstraintStamp ( )

Definition at line 49 of file ConstraintStamp.cpp.

References DefineOptionalParameterWithDefaultValue, and DefineParameter.

◆ ~ConstraintStamp()

OpenMD::ConstraintStamp::~ConstraintStamp ( )
virtual

Definition at line 55 of file ConstraintStamp.cpp.

Member Function Documentation

◆ DeclareParameter() [1/2]

OpenMD::ConstraintStamp::DeclareParameter ( ConstrainedDistance  ,
RealType   
)
private

◆ DeclareParameter() [2/2]

OpenMD::ConstraintStamp::DeclareParameter ( PrintConstraintForce  ,
bool   
)
private

◆ getA()

int OpenMD::ConstraintStamp::getA ( )
inline

◆ getB()

int OpenMD::ConstraintStamp::getB ( )
inline

◆ setMembers()

void OpenMD::ConstraintStamp::setMembers ( std::vector< int >  members)
inline

Definition at line 56 of file ConstraintStamp.hpp.

References a, b, and OpenMD::containerToString().

Referenced by MDTreeParser::constraintstatement().

◆ validate()

void OpenMD::ConstraintStamp::validate ( )
virtual

Reimplemented from OpenMD::DataHolder.

Definition at line 58 of file ConstraintStamp.cpp.

References CheckParameter, OpenMD::isNonNegative(), and OpenMD::DataHolder::validate().

Referenced by getB().

Member Data Documentation

◆ a

int OpenMD::ConstraintStamp::a
private

Definition at line 81 of file ConstraintStamp.hpp.

Referenced by getA(), and setMembers().

◆ b

int OpenMD::ConstraintStamp::b
private

Definition at line 82 of file ConstraintStamp.hpp.

Referenced by getB(), and setMembers().


The documentation for this class was generated from the following files: