27 #ifndef TOOLS_ATOMITERATOR_H
28 #define TOOLS_ATOMITERATOR_H
63 std::vector<Atom*> atoms;
Allow iteration over a set of atoms given by a target list (component name or index list)
Definition: AtomIterator.h:40
~AtomIterator()=default
destructor
Atom * currentAtom()
return current atom
Definition: AtomIterator.cpp:79
void begin()
place iterator on first atom
Definition: AtomIterator.cpp:62
void next()
if iteration is not finished, advance to next atom
Definition: AtomIterator.cpp:72
AtomIterator(PhysicalModel *pml, std::string targetList)
constructor
Definition: AtomIterator.cpp:29
void operator++()
redefinition of ++ operator, advance iterator to next atom
Definition: AtomIterator.cpp:84
bool end()
return true if iterator is over the last atom
Definition: AtomIterator.cpp:67
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
This is the main class of this project.
Definition: PhysicalModel.h:86