ArmNN
 20.02
GraphObservable< ObservedType > Class Template Reference

#include <Observable.hpp>

Inheritance diagram for GraphObservable< ObservedType >:
IGraphObservable

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  };
void AttachObservable(IGraphObservable *const observable, GraphEvent notifyOnEvent)
Definition: Graph.hpp:204
GraphEvent m_NotifyOnEvent
Definition: Observable.hpp:41

◆ ~GraphObservable()

~GraphObservable ( )
inlineprotected

Definition at line 33 of file Observable.hpp.

34  {
35  if (m_Subject)
36  {
38  }
39  }
GraphEvent m_NotifyOnEvent
Definition: Observable.hpp:41
void DetachObservable(IGraphObservable *const observable, GraphEvent notifyOnEvent)
Definition: Graph.hpp:208

Member Function Documentation

◆ begin()

Iterator begin ( )
inline

Definition at line 28 of file Observable.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

28 { return m_ObservedObjects.begin(); }
std::list< ObservedType > m_ObservedObjects
Definition: Observable.hpp:43

◆ Clear()

void Clear ( )
inline

Definition at line 26 of file Observable.hpp.

Referenced by BOOST_AUTO_TEST_CASE(), and Optimizer::Pass().

26 { m_ObservedObjects.clear(); };
std::list< ObservedType > m_ObservedObjects
Definition: Observable.hpp:43

◆ end()

Iterator end ( )
inline

Definition at line 30 of file Observable.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

30 { return m_ObservedObjects.end(); }
std::list< ObservedType > m_ObservedObjects
Definition: Observable.hpp:43

Member Data Documentation

◆ m_NotifyOnEvent

GraphEvent m_NotifyOnEvent
protected

◆ m_ObservedObjects

std::list<ObservedType> m_ObservedObjects
protected

◆ m_Subject

Graph* m_Subject
protected

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