ArmNN
 24.08
AddedLayerObservable Class Reference

#include <Observable.hpp>

Inheritance diagram for AddedLayerObservable:
[legend]
Collaboration diagram for AddedLayerObservable:
[legend]

Public Member Functions

 AddedLayerObservable (Graph &subject)
 
void Update (Layer *graphLayer) override
 
- Public Member Functions inherited from GraphObservable< Layer * >
 GraphObservable (Graph &subject, GraphEvent notifyOnEvent)
 
void Clear ()
 
Iterator begin ()
 
Iterator end ()
 

Additional Inherited Members

- Public Types inherited from GraphObservable< Layer * >
using Iterator = typename std::list< Layer * >::const_iterator
 
- Protected Member Functions inherited from GraphObservable< Layer * >
 ~GraphObservable ()
 
- Protected Member Functions inherited from IGraphObservable
virtual ~IGraphObservable ()=default
 
- Protected Attributes inherited from GraphObservable< Layer * >
GraphEvent m_NotifyOnEvent
 
Graphm_Subject
 
std::list< Layer * > m_ObservedObjects
 

Detailed Description

Definition at line 46 of file Observable.hpp.

Constructor & Destructor Documentation

◆ AddedLayerObservable()

AddedLayerObservable ( Graph subject)
inlineexplicit

Definition at line 49 of file Observable.hpp.

50  : GraphObservable<Layer*>(subject, GraphEvent::LayerAdded)
51  {};

References armnn::LayerAdded.

Member Function Documentation

◆ Update()

void Update ( Layer graphLayer)
overridevirtual

Implements IGraphObservable.

Definition at line 11 of file Observable.cpp.

12 {
13  m_ObservedObjects.emplace_back(graphLayer);
14 }

References GraphObservable< Layer * >::m_ObservedObjects.


The documentation for this class was generated from the following files:
armnn::GraphObservable< Layer * >::m_ObservedObjects
std::list< Layer * > m_ObservedObjects
Definition: Observable.hpp:43
armnn::GraphEvent::LayerAdded
@ LayerAdded