Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ObservablePool< KeyType > Class Template Reference

List of observables. More...

#include <arcane/core/ObservablePool.h>

Collaboration diagram for Arcane::ObservablePool< KeyType >:

Public Types

typedef std::map< KeyType, IObservable * > ObservableListType

Public Member Functions

 ObservablePool ()
 Constructor.
 ~ObservablePool ()
 Frees resources.
void add (const KeyType &key)
IObservableoperator[] (const KeyType &key)

Private Member Functions

IObservable_getIfExists (const KeyType &key) const

Private Attributes

ObservableListType m_observables
 List of observables.

Detailed Description

template<typename KeyType>
class Arcane::ObservablePool< KeyType >

List of observables.

This class allows managing a list of observables. Each observable is associated with a key of type KeyType.

Definition at line 45 of file ObservablePool.h.

Member Typedef Documentation

◆ ObservableListType

template<typename KeyType>
typedef std::map<KeyType, IObservable*> Arcane::ObservablePool< KeyType >::ObservableListType

Definition at line 49 of file ObservablePool.h.

Constructor & Destructor Documentation

◆ ObservablePool()

template<typename KeyType>
Arcane::ObservablePool< KeyType >::ObservablePool ( )
inline

Constructor.

Definition at line 54 of file ObservablePool.h.

◆ ~ObservablePool()

template<typename KeyType>
Arcane::ObservablePool< KeyType >::~ObservablePool ( )
inline

Frees resources.

Definition at line 56 of file ObservablePool.h.

References Arcane::IObservable::detachAllObservers(), and m_observables.

Here is the call graph for this function:

Member Function Documentation

◆ _getIfExists()

template<typename KeyType>
IObservable * Arcane::ObservablePool< KeyType >::_getIfExists ( const KeyType & key) const
inlineprivate

Definition at line 88 of file ObservablePool.h.

◆ add()

template<typename KeyType>
void Arcane::ObservablePool< KeyType >::add ( const KeyType & key)
inline

Definition at line 67 of file ObservablePool.h.

◆ operator[]()

template<typename KeyType>
IObservable * Arcane::ObservablePool< KeyType >::operator[] ( const KeyType & key)
inline

Definition at line 75 of file ObservablePool.h.

Member Data Documentation

◆ m_observables

template<typename KeyType>
ObservableListType Arcane::ObservablePool< KeyType >::m_observables
private

List of observables.

Definition at line 86 of file ObservablePool.h.

Referenced by ~ObservablePool().


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