Belle II Software
release-08-01-10
|
Iterator over a Path (returning Module pointers). More...
#include <PathIterator.h>
Public Member Functions | |
PathIterator (const PathPtr &path) | |
Constructor. | |
PathIterator (const PathPtr &path, const PathIterator &parentIterator) | |
Constructor with back-reference to an iterator over the parent path. | |
void | next () |
increment. | |
void | descendIfNecessary () |
Check if we're pointing to another path and descend if that is the case. | |
bool | isDone () const |
Are we finished iterating? | |
Module * | get () const |
dereference. | |
Private Attributes | |
PathPtr | m_path |
keep the path around to ensure iterators remain valid. | |
std::list< std::shared_ptr< PathElement > >::const_iterator | m_iter |
wrapped path list iterator. | |
std::list< std::shared_ptr< PathElement > >::const_iterator | m_end |
iterator to end of Path. | |
std::shared_ptr< PathIterator > | m_parentIterator |
If this is non-NULL, we jump to m_parentIterator+1 after m_iter is done. | |
Iterator over a Path (returning Module pointers).
Definition at line 26 of file PathIterator.h.