ArmNN
 24.02
Graph::InputLayersAccessor Struct Reference

Wrapper class returned by Graph::GetInputLayers() More...

#include <Graph.hpp>

Collaboration diagram for Graph::InputLayersAccessor:
[legend]

Public Member Functions

 InputLayersAccessor (const Graph &graph)
 
ConstIteratorInputs begin () const
 
ConstIteratorInputs end () const
 

Public Attributes

const Graphm_Graph
 

Detailed Description

Wrapper class returned by Graph::GetInputLayers()

Definition at line 61 of file Graph.hpp.

Constructor & Destructor Documentation

◆ InputLayersAccessor()

InputLayersAccessor ( const Graph graph)
inlineexplicit

Definition at line 63 of file Graph.hpp.

63 : m_Graph(graph) {}

Member Function Documentation

◆ begin()

ConstIteratorInputs begin ( ) const
inline

Definition at line 65 of file Graph.hpp.

66  {
67  return { m_Graph.m_Layers.begin(), &(PtrCast<const InputLayer>) };
68  }

References Graph::InputLayersAccessor::m_Graph.

Referenced by LoadedNetwork::ImportInputs().

◆ end()

ConstIteratorInputs end ( ) const
inline

Definition at line 70 of file Graph.hpp.

71  {
72  return { std::next(m_Graph.m_Layers.begin(), static_cast<IteratorDifference>(m_Graph.GetNumInputs())),
73  &(PtrCast<const InputLayer>) };
74  }

References Graph::GetNumInputs(), and Graph::InputLayersAccessor::m_Graph.

Referenced by LoadedNetwork::ImportInputs().

Member Data Documentation

◆ m_Graph

const Graph& m_Graph

Definition at line 76 of file Graph.hpp.

Referenced by Graph::InputLayersAccessor::begin(), and Graph::InputLayersAccessor::end().


The documentation for this struct was generated from the following file:
armnn::Graph::InputLayersAccessor::m_Graph
const Graph & m_Graph
Definition: Graph.hpp:76
armnn::Graph::IteratorDifference
Iterator::difference_type IteratorDifference
Definition: Graph.hpp:54
armnn::Graph::GetNumInputs
size_t GetNumInputs() const
Definition: Graph.hpp:187