27 #ifndef TOOLS_ATOMITERATOR_H 28 #define TOOLS_ATOMITERATOR_H 69 #endif // TOOLS_ATOMITERATOR_H
void begin()
place iterator on first atom
Definition: AtomIterator.cpp:62
~AtomIterator()=default
destructor
bool end()
return true if iterator is over the last atom
Definition: AtomIterator.cpp:67
Atom * currentAtom()
return current atom
Definition: AtomIterator.cpp:79
void next()
if iteration is not finished, advance to next atom
Definition: AtomIterator.cpp:72
unsigned int index
current atom index
Definition: AtomIterator.h:65
void operator++()
redefinition of ++ operator, advance iterator to next atom
Definition: AtomIterator.cpp:84
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
AtomIterator(PhysicalModel *pml, std::string targetList)
constructor
Definition: AtomIterator.cpp:29
Allow iteration over a set of atoms given by a target list (component name or index list) ...
Definition: AtomIterator.h:40
std::vector< Atom * > atoms
atoms list
Definition: AtomIterator.h:63