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

#include <ReplacementVisitor.hpp>

Inheritance diagram for OpenMD::ReplacementVisitor:
OpenMD::BaseAtomVisitor OpenMD::BaseVisitor OpenMD::GBheadVisitor OpenMD::GBtailVisitor OpenMD::SSDAtomVisitor

Public Member Functions

 ReplacementVisitor (SimInfo *info)
 
 ~ReplacementVisitor ()
 
void visit (Atom *atom)
 
void visit (DirectionalAtom *datom)
 
void visit (RigidBody *rb)
 
const std::string toString ()
 
void addReplacedAtomName (const std::string &repName)
 
void addSite (const std::string &name, const Vector3d &refPos)
 
void addSite (const std::string &name, const Vector3d &refPos, const Vector3d &refVec)
 
- Public Member Functions inherited from OpenMD::BaseAtomVisitor
void setVisited (Atom *atom)
 
bool isVisited (Atom *atom)
 
- Public Member Functions inherited from OpenMD::BaseVisitor
virtual ~BaseVisitor ()
 
virtual void visit (Bond *bond)
 
virtual void visit (Bend *bend)
 
virtual void visit (Torsion *torsion)
 
virtual void visit (Inversion *inversion)
 
virtual void update ()
 
const std::string & getVisitorName ()
 

Private Member Functions

bool isReplacedAtom (const std::string &atomType)
 

Private Attributes

std::set< std::string > myTypes_
 
AtomDatasites_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::BaseAtomVisitor
 BaseAtomVisitor (SimInfo *info)
 
- Protected Member Functions inherited from OpenMD::BaseVisitor
 BaseVisitor ()
 
- Protected Attributes inherited from OpenMD::BaseAtomVisitor
SimInfoinfo
 
int storageLayout_
 
- Protected Attributes inherited from OpenMD::BaseVisitor
std::string visitorName
 

Detailed Description

Replaces an atomic object with a collection atomic sites. These sites are specified with reference location to the object, as well as a name.

Definition at line 59 of file ReplacementVisitor.hpp.

Constructor & Destructor Documentation

◆ ReplacementVisitor()

OpenMD::ReplacementVisitor::ReplacementVisitor ( SimInfo info)
inline

◆ ~ReplacementVisitor()

OpenMD::ReplacementVisitor::~ReplacementVisitor ( )

Definition at line 54 of file ReplacementVisitor.cpp.

References myTypes_, and sites_.

Referenced by ReplacementVisitor().

Member Function Documentation

◆ addReplacedAtomName()

void OpenMD::ReplacementVisitor::addReplacedAtomName ( const std::string &  repName)

◆ addSite() [1/2]

void OpenMD::ReplacementVisitor::addSite ( const std::string &  name,
const Vector3d refPos 
)

◆ addSite() [2/2]

void OpenMD::ReplacementVisitor::addSite ( const std::string &  name,
const Vector3d refPos,
const Vector3d refVec 
)

◆ isReplacedAtom()

bool OpenMD::ReplacementVisitor::isReplacedAtom ( const std::string &  atomType)
inlineprivate

Definition at line 59 of file ReplacementVisitor.cpp.

References myTypes_.

Referenced by visit().

◆ toString()

const std::string OpenMD::ReplacementVisitor::toString ( )
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 174 of file ReplacementVisitor.cpp.

References OpenMD::BaseVisitor::visitorName.

Referenced by visit().

◆ visit() [1/3]

void OpenMD::ReplacementVisitor::visit ( Atom atom)
inlinevirtual

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 68 of file ReplacementVisitor.hpp.

◆ visit() [2/3]

◆ visit() [3/3]

void OpenMD::ReplacementVisitor::visit ( RigidBody rb)
inlinevirtual

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 70 of file ReplacementVisitor.hpp.

References addReplacedAtomName(), addSite(), isReplacedAtom(), and toString().

Member Data Documentation

◆ myTypes_

std::set<std::string> OpenMD::ReplacementVisitor::myTypes_
private

Definition at line 79 of file ReplacementVisitor.hpp.

Referenced by addReplacedAtomName(), isReplacedAtom(), and ~ReplacementVisitor().

◆ sites_

AtomData* OpenMD::ReplacementVisitor::sites_
private

Definition at line 80 of file ReplacementVisitor.hpp.

Referenced by addSite(), ReplacementVisitor(), visit(), and ~ReplacementVisitor().


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