48 typedef std::map<KeyType,IObservable*> ObservableListType;
57 for(
const auto& x : m_observables ){
66 void add(
const KeyType& key)
70 ARCANE_FATAL(
"Observable with current key already exists");
71 m_observables.insert(std::make_pair(key,
new Observable()));
74 IObservable* operator[](
const KeyType& key)
76 IObservable* x = _getIfExists(key);
86 ObservableListType m_observables;
88 IObservable* _getIfExists(
const KeyType& key)
const
90 auto x = m_observables.find(key);
91 if (x!=m_observables.end())