LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
|
Our own simple iterator for stepping over all managed atoms. More...
#include <AtomicGroup.hpp>
Public Member Functions | |
Iterator (const AtomicGroup &grp) | |
pAtom | operator() (void) |
Our own simple iterator for stepping over all managed atoms.
Example:
Note that the shared atom returned is a copy of the shared-atom pointer stored, rather than a ref to the shared atom pointer... You should exercise GREAT care in modifying the atom while iterating, or performing any operations that modify the group you're iterating over. In fact, don't do it, unless you are sure you know what you're doing.