#include <Tree.hpp>


Public Member Functions | |
| ReversePostOrderIterator (const Tree &t) | |
| virtual | ~ReversePostOrderIterator () |
| void | operator++ () |
| void | operator++ (int) |
| bool | isValid () const |
| OA_ptr< Node > | current () const |
Private Attributes | |
| OA_ptr< Node > | p |
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.
| OA::Tree::ReversePostOrderIterator::ReversePostOrderIterator | ( | const Tree & | t | ) |
| virtual OA::Tree::ReversePostOrderIterator::~ReversePostOrderIterator | ( | ) | [inline, virtual] |
Reimplemented in OA::ExprTree::ReversePostOrderIterator, OA::ExprTree::ReversePostOrderIterator, and OA::NewExprTree::ReversePostOrderIterator.
Definition at line 451 of file Tree.hpp.
References p.
Referenced by OA::NewExprTree::ReversePostOrderIterator::current(), and OA::ExprTree::ReversePostOrderIterator::current().
| 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().

| 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().

| void OA::Tree::ReversePostOrderIterator::operator++ | ( | int | ) | [inline] |
Reimplemented from OA::Iterator.
OA_ptr<Node> OA::Tree::ReversePostOrderIterator::p [private] |
Definition at line 454 of file Tree.hpp.
Referenced by current(), isValid(), and operator++().
1.7.1