ArmNN
 22.08
Graph::InputLayersAccessor Struct Reference

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

#include <Graph.hpp>

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.

Referenced by Graph::GetInputLayers().

63 : m_Graph(graph) {}

Member Function Documentation

◆ begin()

ConstIteratorInputs begin ( ) const
inline

Definition at line 65 of file Graph.hpp.

References Graph::InputLayersAccessor::m_Graph.

Referenced by Graph::cbegin(), and LoadedNetwork::ImportInputs().

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

◆ end()

ConstIteratorInputs end ( ) const
inline

Definition at line 70 of file Graph.hpp.

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

Referenced by Graph::cend(), and LoadedNetwork::ImportInputs().

71  {
72  return { std::next(m_Graph.m_Layers.begin(), static_cast<IteratorDifference>(m_Graph.GetNumInputs())),
73  &(PtrCast<const InputLayer>) };
74  }
Iterator::difference_type IteratorDifference
Definition: Graph.hpp:54
size_t GetNumInputs() const
Definition: Graph.hpp:187

Member Data Documentation

◆ m_Graph


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