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

#include <UN_Iterator.h>

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = UN_Node
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 UN_NodeDescendantIterator (UN_GraphData *graph_data, UN_NodeID node_id)
 Constructor for the start iterator of the given node ancestral tree. More...
 
 UN_NodeDescendantIterator (UN_GraphData *graph_data)
 Constructor for the end iterator. More...
 
UN_NodeDescendantIteratoroperator++ ()
 Increment operator. More...
 
bool operator!= (const UN_NodeDescendantIterator &other) const
 Comparison operator. More...
 
UN_Node operator* () const
 Dereferencing operator, returns the handle to the current node data obj. More...
 

Detailed Description

Iterator for traversing the node data objects that are arranged in a parental tree hierarchy. The iterator dereferences as a handle to node data object. Used for iterating connected nodes in nested subnetworks.

Definition at line 143 of file UN_Iterator.h.

Member Typedef Documentation

Definition at line 148 of file UN_Iterator.h.

using UN_NodeDescendantIterator::iterator_category = std::input_iterator_tag

Definition at line 146 of file UN_Iterator.h.

Definition at line 149 of file UN_Iterator.h.

Definition at line 150 of file UN_Iterator.h.

Definition at line 147 of file UN_Iterator.h.

Constructor & Destructor Documentation

UN_NodeDescendantIterator::UN_NodeDescendantIterator ( UN_GraphData *  graph_data,
UN_NodeID  node_id 
)
inline

Constructor for the start iterator of the given node ancestral tree.

Definition at line 153 of file UN_Iterator.h.

UN_NodeDescendantIterator::UN_NodeDescendantIterator ( UN_GraphData *  graph_data)
inline

Constructor for the end iterator.

Definition at line 160 of file UN_Iterator.h.

Member Function Documentation

bool UN_NodeDescendantIterator::operator!= ( const UN_NodeDescendantIterator other) const
inline

Comparison operator.

Definition at line 173 of file UN_Iterator.h.

UN_Node UN_NodeDescendantIterator::operator* ( ) const

Dereferencing operator, returns the handle to the current node data obj.

UN_NodeDescendantIterator& UN_NodeDescendantIterator::operator++ ( )
inline

Increment operator.

Definition at line 165 of file UN_Iterator.h.


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