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

#include <OtherVisitor.hpp>

Inheritance diagram for OpenMD::ReplicateVisitor:
OpenMD::BaseVisitor

Public Member Functions

 ReplicateVisitor (SimInfo *info, Vector3i opt)
 
virtual void visit (Atom *atom)
 
virtual void visit (DirectionalAtom *datom)
 
virtual void visit (RigidBody *rb)
 
virtual const std::string toString ()
 
- 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 ()
 

Protected Member Functions

void internalVisit (StuntDouble *sd)
 
void replicate (std::vector< AtomInfo *> &infoList, AtomData *data, const Mat3x3d &box)
 
- Protected Member Functions inherited from OpenMD::BaseVisitor
 BaseVisitor ()
 

Private Attributes

std::vector< Vector3idir
 
SimInfoinfo
 
Vector3i replicateOpt
 

Additional Inherited Members

- Protected Attributes inherited from OpenMD::BaseVisitor
std::string visitorName
 

Detailed Description

Definition at line 83 of file OtherVisitor.hpp.

Constructor & Destructor Documentation

◆ ReplicateVisitor()

OpenMD::ReplicateVisitor::ReplicateVisitor ( SimInfo info,
Vector3i  opt 
)

Definition at line 123 of file OtherVisitor.cpp.

References dir, info, replicateOpt, and OpenMD::BaseVisitor::visitorName.

Member Function Documentation

◆ internalVisit()

◆ replicate()

void OpenMD::ReplicateVisitor::replicate ( std::vector< AtomInfo *> &  infoList,
AtomData data,
const Mat3x3d box 
)
protected

Definition at line 181 of file OtherVisitor.cpp.

References OpenMD::AtomData::addAtomInfo(), dir, and OpenMD::AtomInfo::pos.

Referenced by internalVisit().

◆ toString()

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 199 of file OtherVisitor.cpp.

References replicateOpt, and OpenMD::BaseVisitor::visitorName.

◆ visit() [1/3]

void OpenMD::ReplicateVisitor::visit ( Atom atom)
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 144 of file OtherVisitor.cpp.

References internalVisit().

◆ visit() [2/3]

void OpenMD::ReplicateVisitor::visit ( DirectionalAtom datom)
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 148 of file OtherVisitor.cpp.

References internalVisit().

◆ visit() [3/3]

void OpenMD::ReplicateVisitor::visit ( RigidBody rb)
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 152 of file OtherVisitor.cpp.

References internalVisit().

Member Data Documentation

◆ dir

std::vector<Vector3i> OpenMD::ReplicateVisitor::dir
private

Definition at line 97 of file OtherVisitor.hpp.

Referenced by replicate(), and ReplicateVisitor().

◆ info

SimInfo* OpenMD::ReplicateVisitor::info
private

Definition at line 98 of file OtherVisitor.hpp.

Referenced by internalVisit(), and ReplicateVisitor().

◆ replicateOpt

Vector3i OpenMD::ReplicateVisitor::replicateOpt
private

Definition at line 99 of file OtherVisitor.hpp.

Referenced by ReplicateVisitor(), and toString().


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