Allow iteration over a set of atoms given by a target list (component name or index list) More...
#include <AtomIterator.h>
Public Member Functions | |
AtomIterator (PhysicalModel *pml, std::string targetList) | |
constructor More... | |
void | begin () |
place iterator on first atom More... | |
Atom * | currentAtom () |
return current atom More... | |
bool | end () |
return true if iterator is over the last atom More... | |
void | next () |
if iteration is not finished, advance to next atom More... | |
void | operator++ () |
redefinition of ++ operator, advance iterator to next atom More... | |
~AtomIterator ()=default | |
destructor More... | |
Allow iteration over a set of atoms given by a target list (component name or index list)
AtomIterator::AtomIterator | ( | PhysicalModel * | pml, |
std::string | targetList | ||
) |
constructor
References a, PhysicalModel::getAtom(), PhysicalModel::getComponentByName(), TargetList::getIndexedTarget(), TargetList::getNamedTarget(), StructuralComponent::getNumberOfStructures(), TargetList::getNumberOfTargets(), StructuralComponent::getStructure(), and TargetList::indexedTargets().
|
default |
destructor
void AtomIterator::begin | ( | ) |
place iterator on first atom
Referenced by MonitorDisplacement::calculate(), MonitorDistanceX::calculate(), MonitorDistanceY::calculate(), MonitorDistanceZ::calculate(), MonitorGeometricDeviation::calculate(), MonitorNormDisplacement::calculate(), MonitorPointFinalSetDistance::calculate(), MonitorPointSetDistance::calculate(), MonitorPointToTriangleMeshDistanceFinal::calculate(), MonitorPosition::calculate(), MonitorRen::calculate(), Reference::getDistanceToTriangularMesh(), Reference::getNearest(), and Monitor::Monitor().
Atom * AtomIterator::currentAtom | ( | ) |
return current atom
Referenced by MonitorDisplacement::calculate(), MonitorDistanceX::calculate(), MonitorDistanceY::calculate(), MonitorDistanceZ::calculate(), MonitorGeometricDeviation::calculate(), MonitorNormDisplacement::calculate(), MonitorPointFinalSetDistance::calculate(), MonitorPointSetDistance::calculate(), MonitorPointToTriangleMeshDistanceFinal::calculate(), MonitorPosition::calculate(), MonitorRen::calculate(), Reference::getDistanceToTriangularMesh(), Reference::getNearest(), and Monitor::Monitor().
bool AtomIterator::end | ( | ) |
return true if iterator is over the last atom
Referenced by MonitorDisplacement::calculate(), MonitorDistanceX::calculate(), MonitorDistanceY::calculate(), MonitorDistanceZ::calculate(), MonitorGeometricDeviation::calculate(), MonitorNormDisplacement::calculate(), MonitorPointFinalSetDistance::calculate(), MonitorPointSetDistance::calculate(), MonitorPointToTriangleMeshDistanceFinal::calculate(), MonitorPosition::calculate(), MonitorRen::calculate(), Reference::getDistanceToTriangularMesh(), Reference::getNearest(), Monitor::Monitor(), next(), and operator++().
void AtomIterator::next | ( | ) |
if iteration is not finished, advance to next atom
References end().
Referenced by MonitorDisplacement::calculate(), MonitorDistanceX::calculate(), MonitorDistanceY::calculate(), MonitorDistanceZ::calculate(), MonitorGeometricDeviation::calculate(), MonitorNormDisplacement::calculate(), MonitorPointFinalSetDistance::calculate(), MonitorPointSetDistance::calculate(), MonitorPointToTriangleMeshDistanceFinal::calculate(), MonitorPosition::calculate(), MonitorRen::calculate(), Reference::getDistanceToTriangularMesh(), Reference::getNearest(), and Monitor::Monitor().
void AtomIterator::operator++ | ( | ) |
redefinition of ++ operator, advance iterator to next atom
References end().