|
OpenMD 3.2
Molecular Dynamics in the Open
|
A ShortRangeInteraction holds some bookeeping data for bonded interactions (e.g. More...
#include <ShortRangeInteraction.hpp>
Public Member Functions | |
| int | getGlobalIndex () |
| Returns the global index of this ShortRangeInteraction. | |
| void | setGlobalIndex (int index) |
| Sets the global index of this ShortRangeInteraction. | |
| int | getLocalIndex () |
| Returns the local index of this ShortRangeInteraction. | |
| void | setLocalIndex (int index) |
| Sets the local index of this ShortRangeInteraction. | |
| void | setSnapshotManager (SnapshotManager *sman) |
| Sets the Snapshot Manager of this ShortRangeInteraction. | |
| virtual std::string | getName ()=0 |
| Returns the name of this ShortRangeInteraction. | |
| virtual void | setName (const std::string &) |
| Sets the name of this ShortRangeInteraction. | |
| virtual void | accept (BaseVisitor *v)=0 |
| virtual RealType | getPrevValue () |
| Returns the previous value of this ShortRangeInteraction. | |
| virtual RealType | getValue () |
| Returns the current value of this ShortRangeInteraction. | |
| virtual RealType | getValue (int snapshotNo)=0 |
| Returns the value of this ShortRangeInteraction in specified snapshot. | |
| virtual std::vector< Atom * > | getAtoms () |
| void | addProperty (std::shared_ptr< GenericData > genData) |
| Adds property into property map. | |
| void | removeProperty (const std::string &propName) |
| Removes property from PropertyMap by name. | |
| std::vector< std::string > | getPropertyNames () |
| Returns all names of properties. | |
| std::vector< std::shared_ptr< GenericData > > | getProperties () |
| Returns all of the properties in PropertyMap. | |
| std::shared_ptr< GenericData > | getPropertyByName (const std::string &propName) |
| Returns property. | |
Protected Member Functions | |
| ShortRangeInteraction (const ShortRangeInteraction &sri) | |
| ShortRangeInteraction & | operator= (const ShortRangeInteraction &sri) |
Protected Attributes | |
| SnapshotManager * | snapshotMan_ |
| std::vector< Atom * > | atoms_ |
| int | globalIndex_ |
| int | localIndex_ |
A ShortRangeInteraction holds some bookeeping data for bonded interactions (e.g.
Bonds, Bends, Torsions, Inversions).
Definition at line 69 of file ShortRangeInteraction.hpp.
|
virtual |
Definition at line 57 of file ShortRangeInteraction.cpp.
|
protected |
Definition at line 54 of file ShortRangeInteraction.cpp.
|
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::Bend, OpenMD::Bond, OpenMD::Inversion, and OpenMD::Torsion.
| void OpenMD::ShortRangeInteraction::addProperty | ( | std::shared_ptr< GenericData > | genData | ) |
Adds property into property map.
| genData | GenericData to be added into PropertyMap |
Definition at line 69 of file ShortRangeInteraction.cpp.
References addProperty().
Referenced by addProperty().
|
inlinevirtual |
Definition at line 141 of file ShortRangeInteraction.hpp.
|
inline |
Returns the global index of this ShortRangeInteraction.
Definition at line 77 of file ShortRangeInteraction.hpp.
|
inline |
Returns the local index of this ShortRangeInteraction.
Definition at line 89 of file ShortRangeInteraction.hpp.
|
pure virtual |
Returns the name of this ShortRangeInteraction.
Implemented in OpenMD::Bend, OpenMD::Bond, OpenMD::Inversion, and OpenMD::Torsion.
|
virtual |
Returns the previous value of this ShortRangeInteraction.
Reimplemented in OpenMD::Bend, OpenMD::Bond, OpenMD::Inversion, and OpenMD::Torsion.
Definition at line 64 of file ShortRangeInteraction.cpp.
References getPrevValue(), and getValue().
Referenced by getPrevValue().
| std::vector< std::shared_ptr< GenericData > > OpenMD::ShortRangeInteraction::getProperties | ( | ) |
Returns all of the properties in PropertyMap.
Definition at line 83 of file ShortRangeInteraction.cpp.
References getProperties().
Referenced by getProperties().
| std::shared_ptr< GenericData > OpenMD::ShortRangeInteraction::getPropertyByName | ( | const std::string & | propName | ) |
Returns property.
| propName | name of property |
Definition at line 87 of file ShortRangeInteraction.cpp.
References getPropertyByName().
Referenced by getPropertyByName().
| std::vector< std::string > OpenMD::ShortRangeInteraction::getPropertyNames | ( | ) |
Returns all names of properties.
Definition at line 78 of file ShortRangeInteraction.cpp.
References getPropertyNames().
Referenced by getPropertyNames().
|
virtual |
Returns the current value of this ShortRangeInteraction.
Reimplemented in OpenMD::Bend, OpenMD::Bond, OpenMD::Inversion, and OpenMD::Torsion.
Definition at line 59 of file ShortRangeInteraction.cpp.
References getValue().
Referenced by getPrevValue(), and getValue().
|
pure virtual |
Returns the value of this ShortRangeInteraction in specified snapshot.
| snapshotNo |
Implemented in OpenMD::Bend, OpenMD::Bond, OpenMD::Inversion, and OpenMD::Torsion.
| 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 74 of file ShortRangeInteraction.cpp.
References removeProperty().
Referenced by removeProperty().
|
inline |
Sets the global index of this ShortRangeInteraction.
| index | new global index to be set |
Definition at line 83 of file ShortRangeInteraction.hpp.
|
inline |
Sets the local index of this ShortRangeInteraction.
| index | new index to be set |
Definition at line 95 of file ShortRangeInteraction.hpp.
|
inlinevirtual |
Sets the name of this ShortRangeInteraction.
Reimplemented in OpenMD::Bend, OpenMD::Bond, OpenMD::Inversion, and OpenMD::Torsion.
Definition at line 106 of file ShortRangeInteraction.hpp.
|
inline |
Sets the Snapshot Manager of this ShortRangeInteraction.
Definition at line 100 of file ShortRangeInteraction.hpp.
Referenced by OpenMD::SimInfo::setSnapshotManager().
|
protected |
Definition at line 181 of file ShortRangeInteraction.hpp.
|
protected |
Definition at line 183 of file ShortRangeInteraction.hpp.
|
protected |
Definition at line 184 of file ShortRangeInteraction.hpp.
|
protected |
Definition at line 180 of file ShortRangeInteraction.hpp.