Class managing observers associated with an event. More...
#include <arccore/common/Event.h>
Public Types | |
| typedef EventObserver< Args... > | ObserverType |
Public Member Functions | |
| EventObservableView (EventObservable< Args... > &v) | |
| void | attach (ObserverType *o) |
| Attaches the observer o to this observable. | |
| void | detach (ObserverType *o) |
| Detaches the observer o from this observable. | |
| template<typename Lambda> | |
| void | attach (EventObserverPool &pool, const Lambda &lambda) |
| Adds an observer using the lambda lambda and stores a reference in pool. | |
Class managing observers associated with an event.
Definition at line 252 of file arccore/src/common/arccore/common/Event.h.
| typedef EventObserver<Args...> Arcane::EventObservableView< Args >::ObserverType |
Definition at line 256 of file arccore/src/common/arccore/common/Event.h.
|
inlineexplicit |
Definition at line 260 of file arccore/src/common/arccore/common/Event.h.
|
inline |
Adds an observer using the lambda lambda and stores a reference in pool.
Definition at line 285 of file arccore/src/common/arccore/common/Event.h.
|
inline |
Attaches the observer o to this observable.
An exception is thrown if the observer is already attached to an observable.
Definition at line 271 of file arccore/src/common/arccore/common/Event.h.
|
inline |
Detaches the observer o from this observable.
An exception is thrown if the observer is not attached to this observable.
Definition at line 278 of file arccore/src/common/arccore/common/Event.h.