MaterialX 1.38.9
Loading...
Searching...
No Matches
InheritanceIterator Class Reference

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

#include <Traversal.h>

Public Member Functions

 InheritanceIterator (ConstElementPtr elem)
 
bool operator== (const InheritanceIterator &rhs) const
 
bool operator!= (const InheritanceIterator &rhs) const
 
ConstElementPtr operator* () const
 Dereference this iterator, returning the current element in the traversal.
 
InheritanceIteratoroperator++ ()
 Iterate to the next element in the traversal. More...
 
InheritanceIteratorbegin (size_t holdCount=0)
 Interpret this object as an iteration range, and return its begin iterator.
 

Static Public Member Functions

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

Detailed Description

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

See also
Element::traverseInheritance

Member Function Documentation

◆ operator++()

InheritanceIterator & operator++ ( )

Iterate to the next element in the traversal.

Exceptions
ExceptionFoundCycleif a cycle is encountered.

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