Public Member Functions | Private Attributes

OA::Tree::ReversePostOrderIterator Class Reference

#include <Tree.hpp>

Inheritance diagram for OA::Tree::ReversePostOrderIterator:
Inheritance graph
[legend]
Collaboration diagram for OA::Tree::ReversePostOrderIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReversePostOrderIterator (const Tree &t)
virtual ~ReversePostOrderIterator ()
void operator++ ()
void operator++ (int)
bool isValid () const
OA_ptr< Nodecurrent () const

Private Attributes

OA_ptr< Nodep

Detailed Description

Reverse post-order iterator, as the name suggests, enumerates the nodes in the order that is reverse of post-order.

Definition at line 444 of file Tree.hpp.


Constructor & Destructor Documentation

OA::Tree::ReversePostOrderIterator::ReversePostOrderIterator ( const Tree t  ) 
virtual OA::Tree::ReversePostOrderIterator::~ReversePostOrderIterator (  )  [inline, virtual]

Member Function Documentation

OA_ptr<Node> OA::Tree::ReversePostOrderIterator::current (  )  const [inline]
bool OA::Tree::ReversePostOrderIterator::isValid (  )  const [inline, virtual]

Implements OA::Iterator.

Definition at line 450 of file Tree.hpp.

References p, and OA::OA_ptr< T >::ptrEqual().

Here is the call graph for this function:

void OA::Tree::ReversePostOrderIterator::operator++ (  )  [inline, virtual]

Implements OA::Iterator.

Definition at line 448 of file Tree.hpp.

References p, and OA::OA_ptr< T >::ptrEqual().

Here is the call graph for this function:

void OA::Tree::ReversePostOrderIterator::operator++ ( int   )  [inline]

Reimplemented from OA::Iterator.

Definition at line 449 of file Tree.hpp.


Member Data Documentation

Definition at line 454 of file Tree.hpp.

Referenced by current(), isValid(), and operator++().


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