ArmNN
 25.11
Loading...
Searching...
No Matches
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) {}

References Graph::Graph(), and m_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 m_Graph, and Graph::PtrCast().

◆ 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 m_Graph, and Graph::PtrCast().

Member Data Documentation

◆ m_Graph

const Graph& m_Graph

Definition at line 76 of file Graph.hpp.

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


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