HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InheritanceIterator Class Reference

#include <Traversal.h>

Public Member Functions

 InheritanceIterator (ConstElementPtr elem)
 
 ~InheritanceIterator ()
 
bool operator== (const InheritanceIterator &rhs) const
 
bool operator!= (const InheritanceIterator &rhs) const
 
ConstElementPtr operator* () const
 
InheritanceIteratoroperator++ ()
 
InheritanceIteratorbegin (size_t holdCount=0)
 

Static Public Member Functions

static const InheritanceIteratorend ()
 Return the sentinel end iterator for this class. More...
 

Detailed Description

An iterator object representing the current state of an inheritance traversal.

See Also
Element::traverseInheritance

Definition at line 333 of file Traversal.h.

Constructor & Destructor Documentation

InheritanceIterator::InheritanceIterator ( ConstElementPtr  elem)
inlineexplicit

Definition at line 336 of file Traversal.h.

InheritanceIterator::~InheritanceIterator ( )
inline

Definition at line 342 of file Traversal.h.

Member Function Documentation

InheritanceIterator& InheritanceIterator::begin ( size_t  holdCount = 0)
inline

Interpret this object as an iteration range, and return its begin iterator.

Definition at line 370 of file Traversal.h.

static const InheritanceIterator& InheritanceIterator::end ( )
static

Return the sentinel end iterator for this class.

bool InheritanceIterator::operator!= ( const InheritanceIterator rhs) const
inline

Definition at line 352 of file Traversal.h.

ConstElementPtr InheritanceIterator::operator* ( ) const
inline

Dereference this iterator, returning the current element in the traversal.

Definition at line 359 of file Traversal.h.

InheritanceIterator& InheritanceIterator::operator++ ( )

Iterate to the next element in the traversal.

Exceptions
ExceptionFoundCycleif a cycle is encountered.
bool InheritanceIterator::operator== ( const InheritanceIterator rhs) const
inline

Definition at line 348 of file Traversal.h.


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