OpenMD
2.6
Molecular Dynamics in the Open
|
A ShortRangeInteraction holds some bookeeping data for bonded interactions (e.g. Bonds, Bends, Torsions, Inversions). More...
#include <ShortRangeInteraction.hpp>
Public Member Functions | |
virtual | ~ShortRangeInteraction () |
int | getGlobalIndex () |
void | setGlobalIndex (int index) |
int | getLocalIndex () |
void | setLocalIndex (int index) |
void | setSnapshotManager (SnapshotManager *sman) |
virtual std::string | getName ()=0 |
virtual void | setName (const std::string &name) |
virtual void | accept (BaseVisitor *v)=0 |
virtual RealType | getPrevValue () |
virtual RealType | getValue () |
virtual RealType | getValue (int snapshotNo)=0 |
virtual std::vector< Atom * > | getAtoms () |
void | addProperty (GenericData *genData) |
void | removeProperty (const std::string &propName) |
void | clearProperties () |
std::vector< std::string > | getPropertyNames () |
std::vector< GenericData * > | getProperties () |
GenericData * | getPropertyByName (const std::string &propName) |
Protected Member Functions | |
ShortRangeInteraction () | |
ShortRangeInteraction (const ShortRangeInteraction &sri) | |
ShortRangeInteraction & | operator= (const ShortRangeInteraction &sri) |
Protected Attributes | |
SnapshotManager * | snapshotMan_ |
std::vector< Atom * > | atoms_ |
int | globalIndex_ |
int | localIndex_ |
Private Attributes | |
PropertyMap | properties_ |
A ShortRangeInteraction holds some bookeeping data for bonded interactions (e.g. Bonds, Bends, Torsions, Inversions).
Definition at line 63 of file ShortRangeInteraction.hpp.
|
virtual |
Definition at line 51 of file ShortRangeInteraction.cpp.
|
protected |
Definition at line 47 of file ShortRangeInteraction.cpp.
|
protected |
|
pure virtual |
The purpose of the Visitor Pattern is to encapsulate an operation that you want to perform on the elements of a data structure. In this way, you can change the operation being performed on a structure without the need of changing the classes of the elements that you are operating on. Using a Visitor pattern allows you to decouple the classes for the data structure and the algorithms used upon them
v | visitor |
Implemented in OpenMD::Torsion, OpenMD::Inversion, OpenMD::Bend, and OpenMD::Bond.
void OpenMD::ShortRangeInteraction::addProperty | ( | GenericData * | genData | ) |
Adds property into property map
genData | GenericData to be added into PropertyMap |
Definition at line 64 of file ShortRangeInteraction.cpp.
References OpenMD::PropertyMap::addProperty(), and properties_.
void OpenMD::ShortRangeInteraction::clearProperties | ( | ) |
clear all of the properties
Definition at line 72 of file ShortRangeInteraction.cpp.
References OpenMD::PropertyMap::clearProperties(), and properties_.
|
inlinevirtual |
Definition at line 148 of file ShortRangeInteraction.hpp.
References atoms_.
Referenced by OpenMD::NameFinder::loadNames().
|
inline |
Returns the global index of this ShortRangeInteraction.
Definition at line 72 of file ShortRangeInteraction.hpp.
References globalIndex_.
Referenced by OpenMD::SelectionManager::addSelection(), OpenMD::SelectionEvaluator::allInstruction(), OpenMD::SelectionManager::clearSelection(), OpenMD::DistanceFinder::DistanceFinder(), OpenMD::HullFinder::HullFinder(), OpenMD::IndexFinder::init(), OpenMD::SelectionManager::isSelected(), OpenMD::NameFinder::loadNames(), OpenMD::SelectionManager::SelectionManager(), OpenMD::SelectionManager::setSelection(), and OpenMD::SelectionManager::toggleSelection().
|
inline |
Returns the local index of this ShortRangeInteraction
Definition at line 88 of file ShortRangeInteraction.hpp.
References localIndex_.
|
pure virtual |
Returns the name of this ShortRangeInteraction
Implemented in OpenMD::Torsion, OpenMD::Inversion, OpenMD::Bend, and OpenMD::Bond.
|
virtual |
Returns the previous value of this ShortRangeInteraction
Definition at line 59 of file ShortRangeInteraction.cpp.
References OpenMD::Snapshot::getID(), OpenMD::SnapshotManager::getPrevSnapshot(), getValue(), and snapshotMan_.
std::vector< GenericData * > OpenMD::ShortRangeInteraction::getProperties | ( | ) |
Returns all of the properties in PropertyMap
Definition at line 80 of file ShortRangeInteraction.cpp.
References OpenMD::PropertyMap::getProperties(), and properties_.
GenericData * OpenMD::ShortRangeInteraction::getPropertyByName | ( | const std::string & | propName | ) |
Returns property
propName | name of property |
Definition at line 84 of file ShortRangeInteraction.cpp.
References OpenMD::PropertyMap::getPropertyByName(), and properties_.
std::vector< std::string > OpenMD::ShortRangeInteraction::getPropertyNames | ( | ) |
Returns all names of properties
Definition at line 76 of file ShortRangeInteraction.cpp.
References OpenMD::PropertyMap::getPropertyNames(), and properties_.
|
virtual |
Returns the current value of this ShortRangeInteraction
Definition at line 54 of file ShortRangeInteraction.cpp.
References OpenMD::SnapshotManager::getCurrentSnapshot(), OpenMD::Snapshot::getID(), and snapshotMan_.
Referenced by getPrevValue().
|
pure virtual |
Returns the value of this ShortRangeInteraction in specified snapshot
snapshotNo |
Implemented in OpenMD::Bond, OpenMD::Bend, OpenMD::Torsion, and OpenMD::Inversion.
|
protected |
void OpenMD::ShortRangeInteraction::removeProperty | ( | const std::string & | propName | ) |
Removes property from PropertyMap by name
propName | the name of property to be removed |
Definition at line 68 of file ShortRangeInteraction.cpp.
References properties_, and OpenMD::PropertyMap::removeProperty().
|
inline |
Sets the global index of this ShortRangeInteraction.
index | new global index to be set |
Definition at line 80 of file ShortRangeInteraction.hpp.
References globalIndex_.
Referenced by OpenMD::SimCreator::setGlobalIndex().
|
inline |
Sets the local index of this ShortRangeInteraction
index | new index to be set |
Definition at line 96 of file ShortRangeInteraction.hpp.
References localIndex_.
Referenced by OpenMD::MoleculeCreator::createBend(), OpenMD::MoleculeCreator::createBond(), OpenMD::MoleculeCreator::createInversion(), and OpenMD::MoleculeCreator::createTorsion().
|
inlinevirtual |
Sets the name of this ShortRangeInteraction
Reimplemented in OpenMD::Torsion, OpenMD::Inversion, OpenMD::Bend, and OpenMD::Bond.
Definition at line 113 of file ShortRangeInteraction.hpp.
|
inline |
Sets the Snapshot Manager of this ShortRangeInteraction
Definition at line 104 of file ShortRangeInteraction.hpp.
References snapshotMan_.
Referenced by OpenMD::SimInfo::setSnapshotManager().
|
protected |
Definition at line 194 of file ShortRangeInteraction.hpp.
Referenced by OpenMD::Bend::Bend(), OpenMD::Bond::Bond(), OpenMD::SDKBend::calcForce(), OpenMD::GhostBend::calcForce(), OpenMD::GhostTorsion::calcForce(), OpenMD::UreyBradleyBend::calcForce(), OpenMD::Bond::calcForce(), OpenMD::Inversion::calcForce(), OpenMD::Torsion::calcForce(), OpenMD::Bend::calcForce(), OpenMD::Bond::getAtomA(), OpenMD::Bend::getAtomA(), OpenMD::Inversion::getAtomA(), OpenMD::Torsion::getAtomA(), OpenMD::Bond::getAtomB(), OpenMD::Bend::getAtomB(), OpenMD::Inversion::getAtomB(), OpenMD::Torsion::getAtomB(), OpenMD::Bend::getAtomC(), OpenMD::Inversion::getAtomC(), OpenMD::Torsion::getAtomC(), OpenMD::Inversion::getAtomD(), OpenMD::Torsion::getAtomD(), getAtoms(), OpenMD::Inversion::getValue(), OpenMD::Torsion::getValue(), OpenMD::Bend::getValue(), OpenMD::Bond::getValue(), OpenMD::Inversion::Inversion(), and OpenMD::Torsion::Torsion().
|
protected |
Definition at line 196 of file ShortRangeInteraction.hpp.
Referenced by getGlobalIndex(), and setGlobalIndex().
|
protected |
Definition at line 197 of file ShortRangeInteraction.hpp.
Referenced by getLocalIndex(), and setLocalIndex().
|
private |
Definition at line 201 of file ShortRangeInteraction.hpp.
Referenced by addProperty(), clearProperties(), getProperties(), getPropertyByName(), getPropertyNames(), and removeProperty().
|
protected |
Definition at line 193 of file ShortRangeInteraction.hpp.
Referenced by OpenMD::GhostBend::calcForce(), OpenMD::GhostTorsion::calcForce(), OpenMD::Bond::calcForce(), OpenMD::Inversion::calcForce(), OpenMD::Torsion::calcForce(), OpenMD::Bend::calcForce(), getPrevValue(), OpenMD::Inversion::getValue(), OpenMD::Torsion::getValue(), OpenMD::Bend::getValue(), OpenMD::Bond::getValue(), getValue(), and setSnapshotManager().