ArmNN
 24.02
Graph::OutputLayersAccessor Struct Reference

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

#include <Graph.hpp>

Collaboration diagram for Graph::OutputLayersAccessor:
[legend]

Public Member Functions

 OutputLayersAccessor (const Graph &graph)
 
ConstIteratorOutputs begin () const
 
ConstIteratorOutputs end () const
 

Public Attributes

const Graphm_Graph
 

Detailed Description

Wrapper class returned by Graph::GetOutputLayers()

Definition at line 80 of file Graph.hpp.

Constructor & Destructor Documentation

◆ OutputLayersAccessor()

OutputLayersAccessor ( const Graph graph)
inlineexplicit

Definition at line 82 of file Graph.hpp.

82 : m_Graph(graph) {}

Member Function Documentation

◆ begin()

ConstIteratorOutputs begin ( ) const
inline

Definition at line 84 of file Graph.hpp.

85  {
86  return { std::prev(m_Graph.m_Layers.end(), static_cast<IteratorDifference>(m_Graph.GetNumOutputs())),
87  &(PtrCast<const OutputLayer>) };
88  }

References Graph::GetNumOutputs(), and Graph::OutputLayersAccessor::m_Graph.

Referenced by LoadedNetwork::ImportOutputs().

◆ end()

ConstIteratorOutputs end ( ) const
inline

Definition at line 90 of file Graph.hpp.

91  {
92  return { m_Graph.m_Layers.end(), &(PtrCast<const OutputLayer>) };
93  }

References Graph::OutputLayersAccessor::m_Graph.

Referenced by LoadedNetwork::ImportOutputs().

Member Data Documentation

◆ m_Graph

const Graph& m_Graph

The documentation for this struct was generated from the following file:
armnn::Graph::IteratorDifference
Iterator::difference_type IteratorDifference
Definition: Graph.hpp:54
armnn::Graph::OutputLayersAccessor::m_Graph
const Graph & m_Graph
Definition: Graph.hpp:95
armnn::Graph::GetNumOutputs
size_t GetNumOutputs() const
Definition: Graph.hpp:188