ArmNN
 20.02
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 58 of file Graph.hpp.

Constructor & Destructor Documentation

◆ InputLayersAccessor()

InputLayersAccessor ( const Graph graph)
inlineexplicit

Definition at line 60 of file Graph.hpp.

Referenced by Graph::GetInputLayers().

60 : m_Graph(graph) {}

Member Function Documentation

◆ begin()

ConstIteratorInputs begin ( ) const
inline

Definition at line 62 of file Graph.hpp.

References Graph::InputLayersAccessor::m_Graph.

Referenced by Graph::cbegin().

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

◆ end()

ConstIteratorInputs end ( ) const
inline

Definition at line 67 of file Graph.hpp.

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

Referenced by Graph::cend().

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

Member Data Documentation

◆ m_Graph


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