ArmNN
 24.02
GraphObservable< ObservedType > Class Template Reference

#include <Observable.hpp>

Inheritance diagram for GraphObservable< ObservedType >:
[legend]
Collaboration diagram for GraphObservable< ObservedType >:
[legend]

Public Types

using Iterator = typename std::list< ObservedType >::const_iterator
 

Public Member Functions

 GraphObservable (Graph &subject, GraphEvent notifyOnEvent)
 
void Clear ()
 
Iterator begin ()
 
Iterator end ()
 
- Public Member Functions inherited from IGraphObservable
virtual void Update (Layer *graphLayer)=0
 

Protected Member Functions

 ~GraphObservable ()
 
- Protected Member Functions inherited from IGraphObservable
virtual ~IGraphObservable ()=default
 

Protected Attributes

GraphEvent m_NotifyOnEvent
 
Graphm_Subject
 
std::list< ObservedType > m_ObservedObjects
 

Detailed Description

template<typename ObservedType>
class armnn::GraphObservable< ObservedType >

Definition at line 14 of file Observable.hpp.

Member Typedef Documentation

◆ Iterator

using Iterator = typename std::list<ObservedType>::const_iterator

Definition at line 17 of file Observable.hpp.

Constructor & Destructor Documentation

◆ GraphObservable()

GraphObservable ( Graph subject,
GraphEvent  notifyOnEvent 
)
inline

Definition at line 19 of file Observable.hpp.

20  : m_Subject(&subject)
21  {
22  m_NotifyOnEvent = notifyOnEvent;
24  };

◆ ~GraphObservable()

~GraphObservable ( )
inlineprotected

Definition at line 33 of file Observable.hpp.

34  {
35  if (m_Subject)
36  {
38  }
39  }

Member Function Documentation

◆ begin()

Iterator begin ( )
inline

Definition at line 28 of file Observable.hpp.

28 { return m_ObservedObjects.begin(); }

◆ Clear()

void Clear ( )
inline

Definition at line 26 of file Observable.hpp.

26 { m_ObservedObjects.clear(); };

Referenced by Optimizer::Pass().

◆ end()

Iterator end ( )
inline

Definition at line 30 of file Observable.hpp.

30 { return m_ObservedObjects.end(); }

Member Data Documentation

◆ m_NotifyOnEvent

◆ m_ObservedObjects

std::list<ObservedType> m_ObservedObjects
protected

◆ m_Subject


The documentation for this class was generated from the following file:
armnn::GraphObservable::m_ObservedObjects
std::list< ObservedType > m_ObservedObjects
Definition: Observable.hpp:43
armnn::GraphObservable::m_Subject
Graph * m_Subject
Definition: Observable.hpp:42
armnn::GraphObservable::m_NotifyOnEvent
GraphEvent m_NotifyOnEvent
Definition: Observable.hpp:41
armnn::Graph::AttachObservable
void AttachObservable(IGraphObservable *const observable, GraphEvent notifyOnEvent)
Definition: Graph.hpp:219
armnn::Graph::DetachObservable
void DetachObservable(IGraphObservable *const observable, GraphEvent notifyOnEvent)
Definition: Graph.hpp:223