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

#include <AtomNameVisitor.hpp>

Inheritance diagram for OpenMD::AtomNameVisitor:
OpenMD::BaseVisitor

Public Member Functions

 AtomNameVisitor (SimInfo *info)
 
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 ()
 

Private Member Functions

void visitAtom (Atom *atom)
 

Private Attributes

SimInfoinfo_
 
ForceFieldff_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::BaseVisitor
 BaseVisitor ()
 
- Protected Attributes inherited from OpenMD::BaseVisitor
std::string visitorName
 

Detailed Description

Definition at line 56 of file AtomNameVisitor.hpp.

Constructor & Destructor Documentation

◆ AtomNameVisitor()

OpenMD::AtomNameVisitor::AtomNameVisitor ( SimInfo info)

Member Function Documentation

◆ toString()

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 100 of file AtomNameVisitor.cpp.

References OpenMD::BaseVisitor::visitorName.

Referenced by visit().

◆ visit() [1/3]

virtual void OpenMD::AtomNameVisitor::visit ( Atom atom)
inlinevirtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 61 of file AtomNameVisitor.hpp.

References visitAtom().

Referenced by visit().

◆ visit() [2/3]

virtual void OpenMD::AtomNameVisitor::visit ( DirectionalAtom datom)
inlinevirtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 62 of file AtomNameVisitor.hpp.

References toString(), visit(), and visitAtom().

◆ visit() [3/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 91 of file AtomNameVisitor.cpp.

References OpenMD::RigidBody::beginAtom(), OpenMD::RigidBody::nextAtom(), and visit().

◆ visitAtom()

Member Data Documentation

◆ ff_

ForceField* OpenMD::AtomNameVisitor::ff_
private

Definition at line 69 of file AtomNameVisitor.hpp.

Referenced by AtomNameVisitor(), and visitAtom().

◆ info_

SimInfo* OpenMD::AtomNameVisitor::info_
private

Definition at line 68 of file AtomNameVisitor.hpp.

Referenced by AtomNameVisitor().


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