12#ifndef ARCANE_CORE_OBSERVERPOOL_H
13#define ARCANE_CORE_OBSERVERPOOL_H
17#include "arcane/utils/List.h"
19#include "arcane/core/IObservable.h"
20#include "arcane/core/Observer.h"
52 template <
class T>
inline void
61 template <
class T>
inline void
Base class for a strongly typed collection.
Interface of an observable.
virtual void attachObserver(IObserver *obs)=0
Attaches the observer obs to this observable.
Implementation of a collection of elements in vector form.
ObserverPool()
Constructor.
void addObserver(T *obj, void(T::*func)(), IObservable *oba)
Adds an observer.
void addObserver(T *obj, void(T::*func)(const IObservable &), IObservable *oba)
Adds an observer.
List< IObserver * > m_observers
List of observers.
ObserverCollection observers()
List of observers.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --