LOOS  v2.3.2
loos::AtomicGroup::Iterator Class Reference

Our own simple iterator for stepping over all managed atoms. More...

#include <AtomicGroup.hpp>

Public Member Functions

 Iterator (const AtomicGroup &grp)
 
pAtom operator() (void)
 

Detailed Description

Our own simple iterator for stepping over all managed atoms.

Example:

AtomicGroup::Iterator iter(an_atomic_group);
pAtom p;
while (p = iter())
do_something(p);

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.

Definition at line 537 of file AtomicGroup.hpp.


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