HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator > Class Template Reference

#include <graph_nodes.h>

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = T
 
using difference_type = typename std::iterator_traits< TIterator >::difference_type
 
using pointer = T *
 
using reference = T &
 
using const_reference = const T &
 

Public Member Functions

 NodeIterator (const TIterator current, const TIterator end, const NodeFilterFunc &filter_fn) noexcept
 
bool operator== (const NodeIterator< TIterator > &other) const noexcept
 
bool operator!= (const NodeIterator< TIterator > &other) const noexcept
 
void operator++ ()
 
NodeIterator< TIterator > operator++ (int)
 
reference operator* () const
 
pointer operator-> () const
 

Detailed Description

template<typename TNodesContainer>
template<typename TIterator>
class onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >

Iterator to provide const and non-const access to valid Node instances in a Graph.

Remarks
Skips invalid nodes.

Definition at line 22 of file graph_nodes.h.

Member Typedef Documentation

template<typename TNodesContainer>
template<typename TIterator >
using onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::const_reference = const T&

Definition at line 100 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
using onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::difference_type = typename std::iterator_traits<TIterator>::difference_type

Definition at line 97 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
using onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::iterator_category = std::input_iterator_tag

Definition at line 95 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
using onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::pointer = T*

Definition at line 98 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
using onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::reference = T&

Definition at line 99 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
using onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::value_type = T

Definition at line 96 of file graph_nodes.h.

Constructor & Destructor Documentation

template<typename TNodesContainer>
template<typename TIterator >
onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::NodeIterator ( const TIterator  current,
const TIterator  end,
const NodeFilterFunc filter_fn 
)
inlinenoexcept

Construct a NodeInterator and move to the first valid node.

Definition at line 103 of file graph_nodes.h.

Member Function Documentation

template<typename TNodesContainer>
template<typename TIterator >
bool onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::operator!= ( const NodeIterator< TIterator > &  other) const
inlinenoexcept

Definition at line 116 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
reference onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::operator* ( ) const
inline

Return the current Node&. This will be const if the iterator was returned from a const GraphNodes instance.

Definition at line 137 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
void onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::operator++ ( )
inline

Definition at line 120 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
NodeIterator<TIterator> onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::operator++ ( int  )
inline

Definition at line 129 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
pointer onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::operator-> ( ) const
inline

Definition at line 143 of file graph_nodes.h.

template<typename TNodesContainer>
template<typename TIterator >
bool onnxruntime::ValidNodes< TNodesContainer >::NodeIterator< TIterator >::operator== ( const NodeIterator< TIterator > &  other) const
inlinenoexcept

Definition at line 112 of file graph_nodes.h.


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