NVIDIA NvNeural SDK  2022.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
LayerListIterators.h File Reference

Iterator helper types for working with ILayerList objects. More...

#include <nvneural/CoreTypes.h>
#include <iterator>

Go to the source code of this file.

Classes

class  nvneural::LayerListIterator
 Iterator class to enable range-based for loops and similar constructs across any ILayerList. More...
 

Functions

LayerListIterator nvneural::begin (const ILayerList *pLayerList) noexcept
 Returns a LayerListIterator pointing to the beginning of pLayerList. More...
 
LayerListIterator nvneural::begin (const RefPtr< ILayerList > &pLayerList) noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
LayerListIterator nvneural::end (const ILayerList *pLayerList) noexcept
 Returns a LayerListIterator pointing to the end of pLayerList (one past the final element). More...
 
LayerListIterator nvneural::end (const RefPtr< ILayerList > &pLayerList) noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Detailed Description

Iterator helper types for working with ILayerList objects.

Function Documentation

◆ begin()

LayerListIterator nvneural::begin ( const ILayerList pLayerList)
inlinenoexcept

Returns a LayerListIterator pointing to the beginning of pLayerList.

Put this function in scope (with "using namespace nvneural" or "using nvneural::begin") along with nvneural::end in order to enable range-based iteration across an ILayerList.

◆ end()

LayerListIterator nvneural::end ( const ILayerList pLayerList)
inlinenoexcept

Returns a LayerListIterator pointing to the end of pLayerList (one past the final element).

Put this function in scope (with "using namespace nvneural" or "using nvneural::end") along with nvneural::begin in order to enable range-based iteration across an ILayerList.