OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::ReplacementVisitor Class Reference

Replaces an atomic object with a collection atomic sites. More...

#include <ReplacementVisitor.hpp>

+ Inheritance diagram for OpenMD::ReplacementVisitor:

Public Member Functions

 ReplacementVisitor (SimInfo *info)
 
void visit (Atom *)
 
void visit (DirectionalAtom *datom)
 
void visit (RigidBody *)
 
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)
 
virtual void visit (Bond *)
 
virtual void visit (Bend *)
 
virtual void visit (Torsion *)
 
virtual void visit (Inversion *)
 
- Public Member Functions inherited from OpenMD::BaseAtomVisitor
void setVisited (Atom *atom)
 
bool isVisited (Atom *atom)
 
- Public Member Functions inherited from OpenMD::BaseVisitor
virtual void update ()
 
const std::string & getVisitorName ()
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::BaseAtomVisitor
 BaseAtomVisitor (SimInfo *info)
 
- Protected Attributes inherited from OpenMD::BaseAtomVisitor
SimInfoinfo {nullptr}
 
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 62 of file ReplacementVisitor.hpp.

Constructor & Destructor Documentation

◆ ReplacementVisitor()

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

Definition at line 65 of file ReplacementVisitor.hpp.

Member Function Documentation

◆ addReplacedAtomName()

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

Definition at line 55 of file ReplacementVisitor.cpp.

◆ addSite() [1/2]

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

Definition at line 65 of file ReplacementVisitor.cpp.

◆ addSite() [2/2]

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

Definition at line 72 of file ReplacementVisitor.cpp.

◆ toString()

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 172 of file ReplacementVisitor.cpp.

◆ visit() [1/7]

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

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 70 of file ReplacementVisitor.hpp.

◆ visit() [2/7]

virtual void OpenMD::BaseVisitor::visit ( Bend * )
inlinevirtual

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 70 of file BaseVisitor.hpp.

◆ visit() [3/7]

virtual void OpenMD::BaseVisitor::visit ( Bond * )
inlinevirtual

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 69 of file BaseVisitor.hpp.

◆ visit() [4/7]

void OpenMD::ReplacementVisitor::visit ( DirectionalAtom * datom)
virtual

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 83 of file ReplacementVisitor.cpp.

◆ visit() [5/7]

virtual void OpenMD::BaseVisitor::visit ( Inversion * )
inlinevirtual

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 72 of file BaseVisitor.hpp.

◆ visit() [6/7]

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

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 72 of file ReplacementVisitor.hpp.

◆ visit() [7/7]

virtual void OpenMD::BaseVisitor::visit ( Torsion * )
inlinevirtual

Reimplemented from OpenMD::BaseAtomVisitor.

Definition at line 71 of file BaseVisitor.hpp.


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