#include <yarp/os/Timer.h>
|
| Timer (const Timer &)=delete |
|
Timer | operator= (const Timer &)=delete |
|
| Timer (const yarp::os::TimerSettings &settings, const TimerCallback &callback, bool newThread, yarp::os::Mutex *mutex) |
| Timer constructor. More...
|
|
template<class T > |
| Timer (const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &), T *object, bool newThread, yarp::os::Mutex *mutex) |
| Timer constructor. More...
|
|
template<class T > |
| Timer (const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &) const, const T *object, bool newThread, yarp::os::Mutex *mutex) |
| const version. More...
|
|
| Timer (const yarp::os::TimerSettings &settings, const TimerCallback &callback, bool newThread, std::mutex *mutex=nullptr) |
| Timer constructor. More...
|
|
template<class T > |
| Timer (const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &), T *object, bool newThread, std::mutex *mutex=nullptr) |
| Timer constructor. More...
|
|
template<class T > |
| Timer (const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &) const, const T *object, bool newThread, std::mutex *mutex=nullptr) |
| const version. More...
|
|
virtual | ~Timer () |
|
void | setSettings (const yarp::os::TimerSettings &settings) |
| setSettings More...
|
|
const yarp::os::TimerSettings | getSettings () |
| getSettings More...
|
|
virtual bool | start () |
|
virtual bool | step () |
|
virtual void | stop () |
|
virtual bool | isRunning () |
|
Definition at line 106 of file Timer.h.
◆ TimerCallback
◆ Timer() [1/7]
yarp::os::Timer::Timer |
( |
const Timer & |
| ) |
|
|
delete |
◆ Timer() [2/7]
Timer constructor.
- Parameters
-
settings | the timer settings. see TimerSettings documentation |
callback | the pointer to the function to call. the signature should be "bool foo(const yarp::os::YarpTimerEvent&)" and if it return false the timer will stop |
mutex | if not nullptr will be locked before calling callback and released just after |
newThread | whether the timer should be executed in a dedicated thread or with all the timers with newThread == false (in any case they will not run in the main thread) |
- Deprecated:
- since YARP 3.3
Definition at line 337 of file Timer.cpp.
◆ Timer() [3/7]
Timer constructor.
- Parameters
-
settings | the timer settings. see TimerSettings documentation |
callback | the pointer to the member method to call |
object | the pointer to the object |
mutex | if not nullptr will be locked before calling callback and released just after |
newThread | whether the timer should be executed in a his own thread or with all the timers with newThread == false (in any case they will not run in the main thread) |
- Deprecated:
- since YARP 3.3
Definition at line 147 of file Timer.h.
◆ Timer() [4/7]
◆ Timer() [5/7]
Timer constructor.
- Parameters
-
settings | the timer settings. see TimerSettings documentation |
callback | the pointer to the function to call. the signature should be "bool foo(const yarp::os::YarpTimerEvent&)" and if it return false the timer will stop |
mutex | if not nullptr will be locked before calling callback and released just after |
newThread | whether the timer should be executed in a dedicated thread or with all the timers with newThread == false (in any case they will not run in the main thread) |
Definition at line 347 of file Timer.cpp.
◆ Timer() [6/7]
Timer constructor.
- Parameters
-
settings | the timer settings. see TimerSettings documentation |
callback | the pointer to the member method to call |
object | the pointer to the object |
mutex | if not nullptr will be locked before calling callback and released just after |
newThread | whether the timer should be executed in a his own thread or with all the timers with newThread == false (in any case they will not run in the main thread) |
Definition at line 203 of file Timer.h.
◆ Timer() [7/7]
const version.
Definition at line 217 of file Timer.h.
◆ ~Timer()
◆ getSettings()
getSettings
- Returns
- the current settings
Definition at line 441 of file Timer.cpp.
◆ isRunning()
bool Timer::isRunning |
( |
| ) |
|
|
virtual |
◆ operator=()
Timer yarp::os::Timer::operator= |
( |
const Timer & |
| ) |
|
|
delete |
◆ setSettings()
setSettings
- Parameters
-
Definition at line 436 of file Timer.cpp.
◆ start()
◆ step()
◆ stop()
The documentation for this class was generated from the following files: