SObjectizer  5.8
Loading...
Searching...
No Matches
timertt::details::timer_action_holder< Action_Type > Class Template Reference

A special storage for holding timer actions. More...

#include <all.hpp>

Public Member Functions

 timer_action_holder ()=default
 
 timer_action_holder (const timer_action_holder &)=delete
 
 timer_action_holder (timer_action_holder &&)=delete
 
void assign (Action_Type &&action)
 
void exec () const
 

Private Attributes

buffer_allocated_object< Action_Type > m_action
 

Detailed Description

template<typename Action_Type>
class timertt::details::timer_action_holder< Action_Type >

A special storage for holding timer actions.

If a timer action is represented by std::function<void()> then a simple std::function can be used for holding this timer action. But if a timer action is represented by some user type then we must use a internal buffer and should construct timer action instance inplace only when it is necessary.

Since
v.1.2.0

Definition at line 632 of file 3rd_party/timertt/all.hpp.

Constructor & Destructor Documentation

◆ timer_action_holder() [1/3]

template<typename Action_Type >
timertt::details::timer_action_holder< Action_Type >::timer_action_holder ( )
default

◆ timer_action_holder() [2/3]

template<typename Action_Type >
timertt::details::timer_action_holder< Action_Type >::timer_action_holder ( const timer_action_holder< Action_Type > & )
delete

◆ timer_action_holder() [3/3]

template<typename Action_Type >
timertt::details::timer_action_holder< Action_Type >::timer_action_holder ( timer_action_holder< Action_Type > && )
delete

Member Function Documentation

◆ assign()

template<typename Action_Type >
void timertt::details::timer_action_holder< Action_Type >::assign ( Action_Type && action)
inline

Definition at line 642 of file 3rd_party/timertt/all.hpp.

◆ exec()

template<typename Action_Type >
void timertt::details::timer_action_holder< Action_Type >::exec ( ) const
inline

Definition at line 648 of file 3rd_party/timertt/all.hpp.

Member Data Documentation

◆ m_action

template<typename Action_Type >
buffer_allocated_object<Action_Type> timertt::details::timer_action_holder< Action_Type >::m_action
private

Definition at line 634 of file 3rd_party/timertt/all.hpp.


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