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

#include <ZconsVisitor.hpp>

Inheritance diagram for OpenMD::ZConsVisitor:
OpenMD::BaseVisitor

Public Types

enum  ZConsState { zsFixed = 0, zsMoving }
 

Public Member Functions

 ZConsVisitor (SimInfo *info)
 
 ~ZConsVisitor ()
 
virtual void visit (Atom *atom)
 
virtual void visit (DirectionalAtom *datom)
 
virtual void visit (RigidBody *rb)
 
virtual void update ()
 
bool haveZconsMol ()
 
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)
 
const std::string & getVisitorName ()
 

Protected Member Functions

void internalVisit (StuntDouble *sd, const std::string &prefix)
 
bool isZconstraint (int index, std::string &prefix)
 
void readZconsFile (RealType time)
 
- Protected Member Functions inherited from OpenMD::BaseVisitor
 BaseVisitor ()
 

Private Attributes

std::vector< RealType > zconsPos
 
std::map< int, ZConsStatezmolStates_
 
RealType zconsTol_
 
RealType zconsTime_
 
std::string zconsFilename_
 
ZConsReaderzconsReader_
 
SimInfoinfo_
 
SnapshotcurrSnapshot_
 
std::map< int, int > zatomToZmol_
 

Additional Inherited Members

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

Detailed Description

Note

Definition at line 59 of file ZconsVisitor.hpp.

Member Enumeration Documentation

◆ ZConsState

Enumerator
zsFixed 
zsMoving 

Definition at line 62 of file ZconsVisitor.hpp.

Constructor & Destructor Documentation

◆ ZConsVisitor()

◆ ~ZConsVisitor()

OpenMD::ZConsVisitor::~ZConsVisitor ( )

Definition at line 112 of file ZconsVisitor.cpp.

References zconsReader_.

Member Function Documentation

◆ haveZconsMol()

bool OpenMD::ZConsVisitor::haveZconsMol ( )
inline

Definition at line 73 of file ZconsVisitor.hpp.

References internalVisit(), isZconstraint(), readZconsFile(), toString(), and zmolStates_.

Referenced by main().

◆ internalVisit()

void OpenMD::ZConsVisitor::internalVisit ( StuntDouble sd,
const std::string &  prefix 
)
protected

◆ isZconstraint()

bool OpenMD::ZConsVisitor::isZconstraint ( int  index,
std::string &  prefix 
)
protected

Definition at line 193 of file ZconsVisitor.cpp.

References zatomToZmol_, and zmolStates_.

Referenced by haveZconsMol(), and visit().

◆ readZconsFile()

void OpenMD::ZConsVisitor::readZconsFile ( RealType  time)
protected

◆ toString()

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 208 of file ZconsVisitor.cpp.

References OpenMD::BaseVisitor::visitorName, zconsFilename_, zconsTime_, zconsTol_, and zmolStates_.

Referenced by haveZconsMol().

◆ update()

void OpenMD::ZConsVisitor::update ( )
virtual

◆ visit() [1/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 118 of file ZconsVisitor.cpp.

References OpenMD::StuntDouble::getGlobalIndex(), internalVisit(), and isZconstraint().

◆ visit() [2/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 124 of file ZconsVisitor.cpp.

References OpenMD::StuntDouble::getGlobalIndex(), internalVisit(), and isZconstraint().

◆ visit() [3/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 131 of file ZconsVisitor.cpp.

References OpenMD::RigidBody::getAtoms(), internalVisit(), and isZconstraint().

Member Data Documentation

◆ currSnapshot_

Snapshot* OpenMD::ZConsVisitor::currSnapshot_
private

Definition at line 89 of file ZconsVisitor.hpp.

Referenced by update(), and ZConsVisitor().

◆ info_

SimInfo* OpenMD::ZConsVisitor::info_
private

Definition at line 88 of file ZconsVisitor.hpp.

Referenced by ZConsVisitor().

◆ zatomToZmol_

std::map<int, int> OpenMD::ZConsVisitor::zatomToZmol_
private

Definition at line 90 of file ZconsVisitor.hpp.

Referenced by isZconstraint(), and ZConsVisitor().

◆ zconsFilename_

std::string OpenMD::ZConsVisitor::zconsFilename_
private

Definition at line 86 of file ZconsVisitor.hpp.

Referenced by toString(), and ZConsVisitor().

◆ zconsPos

std::vector<RealType> OpenMD::ZConsVisitor::zconsPos
private

Definition at line 82 of file ZconsVisitor.hpp.

◆ zconsReader_

ZConsReader* OpenMD::ZConsVisitor::zconsReader_
private

Definition at line 87 of file ZconsVisitor.hpp.

Referenced by readZconsFile(), update(), ZConsVisitor(), and ~ZConsVisitor().

◆ zconsTime_

RealType OpenMD::ZConsVisitor::zconsTime_
private

Definition at line 85 of file ZconsVisitor.hpp.

Referenced by toString(), and ZConsVisitor().

◆ zconsTol_

RealType OpenMD::ZConsVisitor::zconsTol_
private

Definition at line 84 of file ZconsVisitor.hpp.

Referenced by toString(), and ZConsVisitor().

◆ zmolStates_

std::map<int, ZConsState> OpenMD::ZConsVisitor::zmolStates_
private

Definition at line 83 of file ZconsVisitor.hpp.

Referenced by haveZconsMol(), isZconstraint(), toString(), update(), and ZConsVisitor().


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