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

#include <CompositeVisitor.hpp>

Inheritance diagram for OpenMD::CompositeVisitor:
OpenMD::BaseVisitor

Public Member Functions

 CompositeVisitor ()
 
 ~CompositeVisitor ()
 
virtual void visit (Atom *atom)
 
virtual void visit (DirectionalAtom *datom)
 
virtual void visit (RigidBody *rb)
 
virtual void update ()
 
void addVisitor (BaseVisitor *v, int priority=0)
 
BaseVisitorbeginVisitor (VisitorIterator &i)
 
BaseVisitornextVisitor (VisitorIterator &i)
 
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 Attributes

std::list< std::pair< BaseVisitor *, int > > visitorList
 
- Protected Attributes inherited from OpenMD::BaseVisitor
std::string visitorName
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::BaseVisitor
 BaseVisitor ()
 

Detailed Description

Definition at line 55 of file CompositeVisitor.hpp.

Constructor & Destructor Documentation

◆ CompositeVisitor()

OpenMD::CompositeVisitor::CompositeVisitor ( )
inline

◆ ~CompositeVisitor()

OpenMD::CompositeVisitor::~CompositeVisitor ( )

Definition at line 50 of file CompositeVisitor.cpp.

References beginVisitor(), nextVisitor(), and visitorList.

Referenced by CompositeVisitor().

Member Function Documentation

◆ addVisitor()

void OpenMD::CompositeVisitor::addVisitor ( BaseVisitor v,
int  priority = 0 
)

Definition at line 60 of file CompositeVisitor.cpp.

References visitorList.

Referenced by CompositeVisitor(), and main().

◆ beginVisitor()

BaseVisitor * OpenMD::CompositeVisitor::beginVisitor ( VisitorIterator i)

Definition at line 76 of file CompositeVisitor.cpp.

References visitorList.

Referenced by CompositeVisitor(), update(), visit(), and ~CompositeVisitor().

◆ nextVisitor()

BaseVisitor * OpenMD::CompositeVisitor::nextVisitor ( VisitorIterator i)

Definition at line 81 of file CompositeVisitor.cpp.

References visitorList.

Referenced by CompositeVisitor(), update(), visit(), and ~CompositeVisitor().

◆ toString()

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 121 of file CompositeVisitor.cpp.

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

Referenced by CompositeVisitor().

◆ update()

void OpenMD::CompositeVisitor::update ( )
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 155 of file CompositeVisitor.cpp.

References beginVisitor(), nextVisitor(), and OpenMD::BaseVisitor::update().

Referenced by CompositeVisitor(), and main().

◆ visit() [1/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 87 of file CompositeVisitor.cpp.

References OpenMD::Atom::accept(), beginVisitor(), and nextVisitor().

Referenced by CompositeVisitor().

◆ visit() [2/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 95 of file CompositeVisitor.cpp.

References OpenMD::DirectionalAtom::accept(), beginVisitor(), and nextVisitor().

◆ visit() [3/3]

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

Member Data Documentation

◆ visitorList

std::list<std::pair<BaseVisitor*, int> > OpenMD::CompositeVisitor::visitorList
protected

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