Private Timer implementation using boost::asio.
More...
|
|
| TimerAsio (::boost::asio::io_service &ioSrv) |
| | Constructs a TimerAsio from given io_service.
|
| |
|
void | start () |
| | Starts or restarts the timer.
|
| |
|
void | stop () |
| | Stops the timer and cancel all pending operations.
|
| |
|
void | setDuration (TimeDurationType duration) |
| | Sets time duration.
|
| |
|
bool | isOneShot () const |
| | Returns if the timer mode is 'one shot'.
|
| |
|
void | setOneShot (bool oneShot) |
| | Sets timer mode.
|
| |
|
bool | isRunning () const |
| | Returns true if the timer is currently running.
|
| |
|
template<typename F > |
| void | setFunction (F f) |
| | Sets the function to be triggered when time duration expires.
|
| |
|
virtual bool | isA (const std::string &type) const |
| |
|
virtual const std::string & | getLeafClassname () const |
| | return object's classname without its namespace, i.e. BaseObject
|
| |
|
virtual const std::string & | getClassname () const |
| | return full object's classname with its namespace, i.e. fwCore::BaseObject
|
| |
|
|
typedef std::shared_ptr< Timer > | sptr |
| |
|
typedef std::function< void() > | FunctionType |
| |
|
typedef std::chrono::duration< double > | TimeDurationType |
| |
|
static bool | isTypeOf (const std::string &type) |
| |
|
static const std::string & | leafClassname () |
| | return object's classname without its namespace, i.e. BaseObject
|
| |
|
static const std::string & | classname () |
| | return object's classname without its namespace, i.e. BaseObject
|
| |
Private Timer implementation using boost::asio.
Definition at line 78 of file WorkerAsio.cpp.
The documentation for this class was generated from the following file: