Belle II Software  release-08-01-10
PathIterator Class Reference

Iterator over a Path (returning Module pointers). More...

#include <PathIterator.h>

Collaboration diagram for PathIterator:

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?
 
Moduleget () 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< PathIteratorm_parentIterator
 If this is non-NULL, we jump to m_parentIterator+1 after m_iter is done.
 

Detailed Description

Iterator over a Path (returning Module pointers).

Definition at line 26 of file PathIterator.h.


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