SparseLibrary  Version 1.6.0
Public Member Functions | List of all members
Upscaler< T >::treePostOrderIterator Class Reference

Same as treeIterator, but does post-order traversal instead of pre-order. More...

#include <Upscaler.hpp>

Inheritance diagram for Upscaler< T >::treePostOrderIterator:
Inheritance graph
[legend]
Collaboration diagram for Upscaler< T >::treePostOrderIterator:
Collaboration graph
[legend]

Public Member Functions

 treePostOrderIterator (Upscaler< T > *_p, const unsigned long int initial, std::vector< bool > *_pp=NULL)
 Base constructor. More...
 
virtual bool next ()
 Moves iterator to next position. More...
 
- Public Member Functions inherited from Upscaler< T >::treeIterator
 treeIterator (Upscaler< T > *_p, const unsigned long int initial, std::vector< bool > *_pp=NULL)
 Base constructor. More...
 
unsigned long int position ()
 

Additional Inherited Members

- Protected Attributes inherited from Upscaler< T >::treeIterator
unsigned long int walk
 Current position of the iterator. More...
 
unsigned long int ID
 Starting position of the iterator. More...
 
std::vector< bool > processed
 Processed[ i ] is true when this iterator has visited its i-th child. More...
 
std::vector< bool > * p_processed
 Pointer to the `processed'-vector actually used. More...
 
Upscaler< T > * p
 Class this iterator works on. More...
 

Detailed Description

template<typename T>
class Upscaler< T >::treePostOrderIterator

Same as treeIterator, but does post-order traversal instead of pre-order.

Constructor & Destructor Documentation

template<typename T>
Upscaler< T >::treePostOrderIterator::treePostOrderIterator ( Upscaler< T > *  _p,
const unsigned long int  initial,
std::vector< bool > *  _pp = NULL 
)
inline

Base constructor.

See also
treeIterator::treeIterator.
Parameters
_pIterates on this object.
initialInitial position.
_ppKeeps track of which children are already visited.

References Upscaler< T >::treeIterator::ID, Upscaler< T >::treePostOrderIterator::next(), and Upscaler< T >::treeIterator::p_processed.

Member Function Documentation

template<typename T>
virtual bool Upscaler< T >::treePostOrderIterator::next ( )
inlinevirtual

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