ArmNN
 20.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 59 of file Graph.hpp.

Constructor & Destructor Documentation

◆ InputLayersAccessor()

InputLayersAccessor ( const Graph graph)
inlineexplicit

Definition at line 61 of file Graph.hpp.

Referenced by Graph::GetInputLayers().

61 : m_Graph(graph) {}

Member Function Documentation

◆ begin()

ConstIteratorInputs begin ( ) const
inline

Definition at line 63 of file Graph.hpp.

References Graph::InputLayersAccessor::m_Graph.

Referenced by Graph::cbegin().

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

◆ end()

ConstIteratorInputs end ( ) const
inline

Definition at line 68 of file Graph.hpp.

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

Referenced by Graph::cend().

69  {
70  return { std::next(m_Graph.m_Layers.begin(), static_cast<IteratorDifference>(m_Graph.GetNumInputs())),
71  &(PtrCast<const InputLayer>) };
72  }
Iterator::difference_type IteratorDifference
Definition: Graph.hpp:52
size_t GetNumInputs() const
Definition: Graph.hpp:181

Member Data Documentation

◆ m_Graph


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