ONE - On-device Neural Engine
Loading...
Searching...
No Matches
logo::PhaseRunnerMixinObservable Class Reference

#include <Phase.h>

Public Member Functions

 PhaseRunnerMixinObservable ()=default
 
virtual ~PhaseRunnerMixinObservable ()=default
 
void attach (PhaseEventListener *listener)
 
void notifyPhaseBegin (void) const
 
void notifyPhaseEnd (void) const
 
void notifyPassBegin (Pass *pass) const
 
void notifyPassEnd (Pass *pass, bool changed) const
 

Detailed Description

Definition at line 89 of file Phase.h.

Constructor & Destructor Documentation

◆ PhaseRunnerMixinObservable()

logo::PhaseRunnerMixinObservable::PhaseRunnerMixinObservable ( )
default

◆ ~PhaseRunnerMixinObservable()

virtual logo::PhaseRunnerMixinObservable::~PhaseRunnerMixinObservable ( )
virtualdefault

Member Function Documentation

◆ attach()

void logo::PhaseRunnerMixinObservable::attach ( PhaseEventListener listener)
inline

Definition at line 98 of file Phase.h.

98{ _listener = listener; }

◆ notifyPassBegin()

void logo::PhaseRunnerMixinObservable::notifyPassBegin ( Pass pass) const
inline

Definition at line 121 of file Phase.h.

122 {
123 if (_listener)
124 {
125 PhaseEventInfo<PhaseEvent::PassBegin> info;
126
127 info.pass(pass);
128
129 _listener->notify(&info);
130 }
131 }
volatile const char info[]
virtual void notify(const PhaseEventInfo< PhaseEvent::PhaseBegin > *)
Definition Phase.h:82

References info, and logo::PhaseEventListener::notify().

◆ notifyPassEnd()

void logo::PhaseRunnerMixinObservable::notifyPassEnd ( Pass pass,
bool  changed 
) const
inline

Definition at line 133 of file Phase.h.

134 {
135 if (_listener)
136 {
137 PhaseEventInfo<PhaseEvent::PassEnd> info;
138
139 info.pass(pass);
140 info.changed(changed);
141
142 _listener->notify(&info);
143 }
144 }

References info, and logo::PhaseEventListener::notify().

◆ notifyPhaseBegin()

void logo::PhaseRunnerMixinObservable::notifyPhaseBegin ( void  ) const
inline

Definition at line 101 of file Phase.h.

102 {
103 if (_listener)
104 {
105 PhaseEventInfo<PhaseEvent::PhaseBegin> info;
106
107 _listener->notify(&info);
108 }
109 }

References info, and logo::PhaseEventListener::notify().

◆ notifyPhaseEnd()

void logo::PhaseRunnerMixinObservable::notifyPhaseEnd ( void  ) const
inline

Definition at line 111 of file Phase.h.

112 {
113 if (_listener)
114 {
115 PhaseEventInfo<PhaseEvent::PhaseEnd> info;
116
117 _listener->notify(&info);
118 }
119 }

References info, and logo::PhaseEventListener::notify().


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