Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::TimestampMng Class Reference

Gestionnaire de Timestamp. More...

#include <core/alien/utils/time_stamp/TimestampMng.h>

Inheritance diagram for Alien::TimestampMng:
Collaboration diagram for Alien::TimestampMng:

Public Member Functions

 TimestampMng (const TimestampMng &tm)
Int64 timestamp () const
 Valeur du timestamp de référence.
void updateTimestamp (Timestamp *ts) const
 Requête de mise à jour d'un Timestamp.
void addObserver (std::shared_ptr< ITimestampObserver > observer)
void clearObservers ()

Private Member Functions

 TimestampMng (TimestampMng &&)=delete
void operator= (const TimestampMng &)=delete
void operator= (TimestampMng &&)=delete

Private Attributes

Int64 m_timestamp
UniqueArray< std::shared_ptr< ITimestampObserver > > m_observers

Detailed Description

Gestionnaire de Timestamp.

Permet d'identifier les éléments à jour d'un point de vue global. Un TimestampMng est associé à un ensemble de Timestamp qui le connaisse et se réfère à lui pour la mise à jour de leur valeur 'à jour'

Definition at line 42 of file TimestampMng.h.

Constructor & Destructor Documentation

◆ TimestampMng() [1/2]

Alien::TimestampMng::TimestampMng ( )

Definition at line 37 of file TimestampMng.cc.

◆ TimestampMng() [2/2]

Alien::TimestampMng::TimestampMng ( const TimestampMng & tm)

Definition at line 43 of file TimestampMng.cc.

◆ ~TimestampMng()

virtual Alien::TimestampMng::~TimestampMng ( )
inlinevirtual

Definition at line 54 of file TimestampMng.h.

Member Function Documentation

◆ addObserver()

void Alien::TimestampMng::addObserver ( std::shared_ptr< ITimestampObserver > observer)

Definition at line 71 of file TimestampMng.cc.

◆ clearObservers()

void Alien::TimestampMng::clearObservers ( )

Definition at line 82 of file TimestampMng.cc.

◆ timestamp()

Int64 Alien::TimestampMng::timestamp ( ) const

Valeur du timestamp de référence.

Definition at line 49 of file TimestampMng.cc.

References m_timestamp, and timestamp().

Referenced by timestamp(), Alien::MultiMatrixImpl::updateImpl(), and Alien::MultiVectorImpl::updateImpl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTimestamp()

void Alien::TimestampMng::updateTimestamp ( Timestamp * ts) const

Requête de mise à jour d'un Timestamp.

Definition at line 56 of file TimestampMng.cc.

References m_timestamp, and updateTimestamp().

Referenced by updateTimestamp().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_observers

UniqueArray<std::shared_ptr<ITimestampObserver> > Alien::TimestampMng::m_observers
private

Definition at line 72 of file TimestampMng.h.

◆ m_timestamp

Int64 Alien::TimestampMng::m_timestamp
mutableprivate

Le modificateur mutable est une erreur de conception à corriger mais sans urgence

Definition at line 70 of file TimestampMng.h.

Referenced by timestamp(), and updateTimestamp().


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