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 ()=default
 
bool operator== (const InheritanceIterator &rhs) const
 
bool operator!= (const InheritanceIterator &rhs) const
 
ConstElementPtr operator* () const
 
InheritanceIterator & operator++ ()
 
InheritanceIterator & begin (size_t holdCount=0)
 

Static Public Member Functions

static const InheritanceIterator & end ()
 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 335 of file Traversal.h.

Constructor & Destructor Documentation

InheritanceIterator::InheritanceIterator ( ConstElementPtr  elem)
inlineexplicit

Definition at line 338 of file Traversal.h.

InheritanceIterator::~InheritanceIterator ( )
default

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 372 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 354 of file Traversal.h.

ConstElementPtr InheritanceIterator::operator* ( ) const
inline

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

Definition at line 361 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 350 of file Traversal.h.


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