Timer Class Reference

#include <RobotAPI/libraries/armem_system_state/server/LightweightSystemMonitor/util/timer.hpp>

+ Inheritance diagram for Timer:

Public Member Functions

void Attach (ITimerObserver *observer, timer_mode mode, std::chrono::milliseconds ms) override
 
void Detach (ITimerObserver *observer) override
 
void start ()
 
 Timer ()
 
 ~Timer () override
 

Static Public Member Functions

static std::shared_ptr< TimercreateTimer ()
 
static std::future< bool > & futureWatch (const slot &functionPointer, const std::shared_future< bool > &fut)
 
static bool isRunning ()
 
static void periodicShot (slot functionPointer, std::chrono::milliseconds ms)
 
static std::future< bool > & singleShot (const slot &functionPointer, std::chrono::milliseconds ms)
 
static void stop ()
 

Detailed Description

Definition at line 58 of file timer.hpp.

Constructor & Destructor Documentation

◆ ~Timer()

~Timer ( )
inlineoverride

Definition at line 225 of file timer.hpp.

◆ Timer()

Timer ( )
inlineexplicit

Definition at line 260 of file timer.hpp.

Member Function Documentation

◆ Attach()

void Attach ( ITimerObserver observer,
timer_mode  mode,
std::chrono::milliseconds  ms 
)
inlineoverridevirtual

Implements ITimerSubject.

Definition at line 247 of file timer.hpp.

+ Here is the call graph for this function:

◆ createTimer()

static std::shared_ptr<Timer> createTimer ( )
inlinestatic

Definition at line 206 of file timer.hpp.

+ Here is the caller graph for this function:

◆ Detach()

void Detach ( ITimerObserver observer)
inlineoverridevirtual

Implements ITimerSubject.

Definition at line 256 of file timer.hpp.

◆ futureWatch()

static std::future<bool>& futureWatch ( const slot functionPointer,
const std::shared_future< bool > &  fut 
)
inlinestatic

Definition at line 221 of file timer.hpp.

+ Here is the call graph for this function:

◆ isRunning()

static bool isRunning ( )
inlinestatic

Definition at line 236 of file timer.hpp.

◆ periodicShot()

static void periodicShot ( slot  functionPointer,
std::chrono::milliseconds  ms 
)
inlinestatic

Definition at line 217 of file timer.hpp.

+ Here is the call graph for this function:

◆ singleShot()

static std::future<bool>& singleShot ( const slot functionPointer,
std::chrono::milliseconds  ms 
)
inlinestatic

Definition at line 213 of file timer.hpp.

+ Here is the call graph for this function:

◆ start()

void start ( )
inline

Definition at line 240 of file timer.hpp.

+ Here is the caller graph for this function:

◆ stop()

static void stop ( )
inlinestatic

Definition at line 232 of file timer.hpp.


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