A ShortRangeInteraction holds some bookeeping data for bonded interactions (e.g.
More...
#include <ShortRangeInteraction.hpp>
A ShortRangeInteraction holds some bookeeping data for bonded interactions (e.g.
Bonds, Bends, Torsions, Inversions).
Definition at line 66 of file ShortRangeInteraction.hpp.
◆ ~ShortRangeInteraction()
OpenMD::ShortRangeInteraction::~ShortRangeInteraction |
( |
| ) |
|
|
virtual |
◆ ShortRangeInteraction()
OpenMD::ShortRangeInteraction::ShortRangeInteraction |
( |
| ) |
|
|
protected |
◆ accept()
virtual void OpenMD::ShortRangeInteraction::accept |
( |
BaseVisitor * | v | ) |
|
|
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
- Parameters
-
Implemented in OpenMD::Bend, OpenMD::Bend, OpenMD::Bond, OpenMD::Inversion, and OpenMD::Torsion.
◆ addProperty()
void OpenMD::ShortRangeInteraction::addProperty |
( |
std::shared_ptr< GenericData > | genData | ) |
|
◆ getAtoms()
virtual std::vector< Atom * > OpenMD::ShortRangeInteraction::getAtoms |
( |
| ) |
|
|
inlinevirtual |
◆ getGlobalIndex()
int OpenMD::ShortRangeInteraction::getGlobalIndex |
( |
| ) |
|
|
inline |
◆ getLocalIndex()
int OpenMD::ShortRangeInteraction::getLocalIndex |
( |
| ) |
|
|
inline |
◆ getName()
virtual std::string OpenMD::ShortRangeInteraction::getName |
( |
| ) |
|
|
pure virtual |
◆ getPrevValue()
RealType OpenMD::ShortRangeInteraction::getPrevValue |
( |
| ) |
|
|
virtual |
◆ getProperties()
std::vector< std::shared_ptr< GenericData > > OpenMD::ShortRangeInteraction::getProperties |
( |
| ) |
|
◆ getPropertyByName()
std::shared_ptr< GenericData > OpenMD::ShortRangeInteraction::getPropertyByName |
( |
const std::string & | propName | ) |
|
Returns property.
- Parameters
-
- Returns
- a pointer point to property with propName. If no property named propName exists, return NULL
Definition at line 84 of file ShortRangeInteraction.cpp.
◆ getPropertyNames()
std::vector< std::string > OpenMD::ShortRangeInteraction::getPropertyNames |
( |
| ) |
|
◆ getValue() [1/2]
RealType OpenMD::ShortRangeInteraction::getValue |
( |
| ) |
|
|
virtual |
◆ getValue() [2/2]
virtual RealType OpenMD::ShortRangeInteraction::getValue |
( |
int | snapshotNo | ) |
|
|
pure virtual |
◆ removeProperty()
void OpenMD::ShortRangeInteraction::removeProperty |
( |
const std::string & | propName | ) |
|
◆ setGlobalIndex()
void OpenMD::ShortRangeInteraction::setGlobalIndex |
( |
int | index | ) |
|
|
inline |
◆ setLocalIndex()
void OpenMD::ShortRangeInteraction::setLocalIndex |
( |
int | index | ) |
|
|
inline |
◆ setName()
virtual void OpenMD::ShortRangeInteraction::setName |
( |
const std::string & | | ) |
|
|
inlinevirtual |
◆ setSnapshotManager()
void OpenMD::ShortRangeInteraction::setSnapshotManager |
( |
SnapshotManager * | sman | ) |
|
|
inline |
◆ atoms_
std::vector<Atom*> OpenMD::ShortRangeInteraction::atoms_ |
|
protected |
◆ globalIndex_
int OpenMD::ShortRangeInteraction::globalIndex_ |
|
protected |
◆ localIndex_
int OpenMD::ShortRangeInteraction::localIndex_ |
|
protected |
◆ snapshotMan_
The documentation for this class was generated from the following files: