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

#include <BendStamp.hpp>

Inheritance diagram for OpenMD::BendStamp:
OpenMD::DataHolder

Public Member Functions

 BendStamp ()
 
virtual ~BendStamp ()
 
int getMemberAt (int index)
 
int getNMembers ()
 
std::vector< int > getMembers ()
 
void setMembers (const std::vector< int > &members)
 
void setMembers (IntTuple3 tuple)
 
void overrideType (std::string type, std::vector< RealType > pars)
 
virtual void validate ()
 
bool hasOverride ()
 
std::string getOverrideType ()
 
std::vector< RealType > getOverridePars ()
 
- 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 (GhostVectorSource, int)
 

Private Attributes

std::vector< int > members_
 
bool hasOverride_
 
std::string orType_
 
std::vector< RealType > orPars_
 

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 50 of file BendStamp.hpp.

Constructor & Destructor Documentation

◆ BendStamp()

OpenMD::BendStamp::BendStamp ( )

Definition at line 49 of file BendStamp.cpp.

References DefineOptionalParameter.

◆ ~BendStamp()

OpenMD::BendStamp::~BendStamp ( )
virtual

Definition at line 53 of file BendStamp.cpp.

Member Function Documentation

◆ DeclareParameter()

OpenMD::BendStamp::DeclareParameter ( GhostVectorSource  ,
int   
)
private

◆ getMemberAt()

int OpenMD::BendStamp::getMemberAt ( int  index)
inline

Definition at line 57 of file BendStamp.hpp.

References members_.

◆ getMembers()

std::vector<int> OpenMD::BendStamp::getMembers ( )
inline

Definition at line 59 of file BendStamp.hpp.

References members_.

Referenced by OpenMD::MoleculeStamp::checkBends(), and OpenMD::MoleculeCreator::createBend().

◆ getNMembers()

int OpenMD::BendStamp::getNMembers ( )
inline

Definition at line 58 of file BendStamp.hpp.

References members_.

◆ getOverridePars()

std::vector<RealType> OpenMD::BendStamp::getOverridePars ( )
inline

Definition at line 85 of file BendStamp.hpp.

References orPars_.

Referenced by OpenMD::MoleculeCreator::createBend().

◆ getOverrideType()

std::string OpenMD::BendStamp::getOverrideType ( )
inline

Definition at line 81 of file BendStamp.hpp.

References orType_.

Referenced by OpenMD::MoleculeCreator::createBend().

◆ hasOverride()

bool OpenMD::BendStamp::hasOverride ( )
inline

Definition at line 80 of file BendStamp.hpp.

References hasOverride_.

Referenced by OpenMD::MoleculeCreator::createBend().

◆ overrideType()

void OpenMD::BendStamp::overrideType ( std::string  type,
std::vector< RealType >  pars 
)
inline

Definition at line 74 of file BendStamp.hpp.

References hasOverride_, orPars_, orType_, and validate().

Referenced by MDTreeParser::bendstatement().

◆ setMembers() [1/2]

void OpenMD::BendStamp::setMembers ( const std::vector< int > &  members)
inline

◆ setMembers() [2/2]

void OpenMD::BendStamp::setMembers ( IntTuple3  tuple)
inline

◆ validate()

void OpenMD::BendStamp::validate ( )
virtual

Reimplemented from OpenMD::DataHolder.

Definition at line 57 of file BendStamp.cpp.

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

Referenced by overrideType().

Member Data Documentation

◆ hasOverride_

bool OpenMD::BendStamp::hasOverride_
private

Definition at line 93 of file BendStamp.hpp.

Referenced by hasOverride(), and overrideType().

◆ members_

std::vector<int> OpenMD::BendStamp::members_
private

Definition at line 92 of file BendStamp.hpp.

Referenced by getMemberAt(), getMembers(), getNMembers(), and setMembers().

◆ orPars_

std::vector<RealType> OpenMD::BendStamp::orPars_
private

Definition at line 95 of file BendStamp.hpp.

Referenced by getOverridePars(), and overrideType().

◆ orType_

std::string OpenMD::BendStamp::orType_
private

Definition at line 94 of file BendStamp.hpp.

Referenced by getOverrideType(), and overrideType().


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