Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

AllNodeIterator Class Template Reference
[NodeIterator]

This iterator iterates over all nodes that follow a given node (with no respect to the root of node). More...

#include <nodeiterator.h>

Inheritance diagram for AllNodeIterator:

Inheritance graph
[legend]
Collaboration diagram for AllNodeIterator:

Collaboration graph
[legend]
List of all members.

Public Types

typedef AllNodeIterator< _Node > iterator
typedef AllNodeIterator< const
_Node > 
const_iterator
typedef AllNodeIterator< _Node,
_Ref, _Ptr > 
_Self
typedef NodeIterator< _Node,
_Ref, _Ptr > 
_Base

Public Methods

 AllNodeIterator ()
 AllNodeIterator (_Node *start)
virtual _Selfconstruct () const
virtual _Selfclone (_Node *start=0) const
 Copy constructor.

virtual ~AllNodeIterator ()
virtual bool operator== (const _Self &rhs)
 Equality operator.

virtual bool operator!= (const _Self &rhs)
 Inequality operator.

virtual _Selfoperator++ ()
 Prefix proceed operator.


Detailed Description

template<class _Node, class _Ref = _Node&, class _Ptr = _Node*>
class treecomp::AllNodeIterator< _Node, _Ref, _Ptr >

This iterator iterates over all nodes that follow a given node (with no respect to the root of node).

The default constructor makes a 'past the end AllNodeIterator'

Definition at line 239 of file nodeiterator.h.


Member Typedef Documentation

typedef NodeIterator<_Node,_Ref,_Ptr> _Base
 

Definition at line 245 of file nodeiterator.h.

typedef AllNodeIterator<_Node, _Ref,_Ptr> _Self
 

Reimplemented from NodeIterator.

Definition at line 244 of file nodeiterator.h.

Referenced by AllNodeIterator::clone(), and AllNodeIterator::construct().

typedef AllNodeIterator<const _Node > const_iterator
 

Reimplemented from NodeIterator.

Definition at line 243 of file nodeiterator.h.

typedef AllNodeIterator<_Node> iterator
 

Reimplemented from NodeIterator.

Definition at line 242 of file nodeiterator.h.


Constructor & Destructor Documentation

AllNodeIterator   [inline]
 

Definition at line 248 of file nodeiterator.h.

AllNodeIterator _Node *    start [inline]
 

Definition at line 251 of file nodeiterator.h.

References NodeIterator::setStart().

virtual ~AllNodeIterator   [inline, virtual]
 

Definition at line 254 of file nodeiterator.h.


Member Function Documentation

AllNodeIterator< _Node, _Ref, _Ptr >::_Self * clone _Node *    start = 0 const [virtual]
 

Copy constructor.

Parameters:
start  Node to start with (if not given make identical copy)

Reimplemented from NodeIterator.

Definition at line 629 of file nodeiterator.h.

References AllNodeIterator::_Self.

virtual _Self* construct   const [inline, virtual]
 

Reimplemented from NodeIterator.

Definition at line 252 of file nodeiterator.h.

References AllNodeIterator::_Self.

bool operator!= const _Self   rhs [virtual]
 

Inequality operator.

Warning:
Compares only 'past the end'

Reimplemented from NodeIterator.

Definition at line 654 of file nodeiterator.h.

References NodeIterator::isEnd().

AllNodeIterator< _Node, _Ref, _Ptr > & operator++   [virtual]
 

Prefix proceed operator.

Reimplemented from NodeIterator.

Definition at line 665 of file nodeiterator.h.

References NodeIterator::addToNodeList(), NodeIterator::m_currentNode, NodeIterator::m_nodeList, and NodeIterator::setEnd().

bool operator== const _Self   rhs [virtual]
 

Equality operator.

Warning:
Compares only 'past the end'

Reimplemented from NodeIterator.

Definition at line 643 of file nodeiterator.h.

References NodeIterator::isEnd().


The documentation for this class was generated from the following file:
Generated on Mon Jan 6 12:02:17 2003 for TreeComp by doxygen1.2.17