Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
RtCall

#include "callback.hh"

Public Member Functions

voidinvoke ()
RtCall (const RtCall &call)
template<typename T >
RtCall (T &o, void(T::*f)())
RtCall (void(*f)())
template<typename T >
RtCall (void(*f)(T *), T *d)
~RtCall ()

Detailed Description

Wrap simple callback pointers, without using malloc (obstruction free).

Constructor & Destructor Documentation

RtCall() [1/4]

template<typename T >
RtCall ( T & o,
void(T::*)() f
)

Wrap a simple `void func()` object member function call.

RtCall() [2/4]

template<typename T >
RtCall ( void(*)(T *) f,
T * d
)

Wrap a single argument `void func (T*)` function call with its pointer argument.

RtCall() [3/4]

RtCall ( void(*)() f)

Wrap a simple `void func ()` function call.

RtCall() [4/4]

RtCall ( const RtCall & call)
explicit

Copy function call pointers from another RtCall.

~RtCall()

~RtCall ( )

Clear function pointers.

Member Function Documentation

invoke()

void invoke ( )

Invoke the wrapped function call.