rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::timer_handler_t< Object, Method > Struct Template Reference

templated implementation of timer handler More...

#include <timer_handler.hpp>

Inheritance diagram for rotor::timer_handler_t< Object, Method >:
rotor::timer_handler_base_t

Public Member Functions

 timer_handler_t (actor_base_t *owner_, request_id_t request_id_, Object *object_, Method method_) noexcept
 constructs timer handler from non-owning pointer to timer, timer request id, delegate and callback (object method)
 
void trigger (bool cancelled) noexcept override
 an action when timer was triggered or cancelled
 
- Public Member Functions inherited from rotor::timer_handler_base_t
 timer_handler_base_t (actor_base_t *owner_, request_id_t request_id_) noexcept
 constructs timer handler from non-owning pointer to timer and timer request id
 

Public Attributes

Object * object
 delegate object, i.e. that one on which the callback (method) will be invoked
 
Method method
 timer callback
 
- Public Attributes inherited from rotor::timer_handler_base_t
actor_base_towner
 actor, which "owns" timer, i.e. where "start_timer" was invoked"
 
request_id_t request_id
 timer identity (aka timer request id)
 

Detailed Description

template<typename Object, typename Method>
struct rotor::timer_handler_t< Object, Method >

templated implementation of timer handler

Member Function Documentation

◆ trigger()

template<typename Object , typename Method >
void rotor::timer_handler_t< Object, Method >::trigger ( bool  cancelled)
inlineoverridevirtualnoexcept

an action when timer was triggered or cancelled

Implements rotor::timer_handler_base_t.


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