Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Wrap simple callback pointers, without using malloc (obstruction free). More...
#include "callback.hh"
Public Member Functions | |
template<typename T > | |
RtCall (T &o, void(T::*f)()) | |
Wrap a simple void func() object member function call. | |
template<typename T > | |
RtCall (void(*f)(T *), T *d) | |
Wrap a single argument void func (T*) function call with its pointer argument. | |
RtCall (void(*f)()) | |
Wrap a simple void func () function call. | |
RtCall (const RtCall &call) | |
Copy function call pointers from another RtCall. | |
void | invoke () |
Invoke the wrapped function call. | |
~RtCall () | |
Clear function pointers. | |
Wrap simple callback pointers, without using malloc (obstruction free).
Definition at line 91 of file callback.hh.
Ase::RtCall::RtCall | ( | T & | o, |
void(T::*)() | f | ||
) |
Wrap a simple void func()
object member function call.
Definition at line 125 of file callback.hh.
References ASE_ASSERT_RETURN.
Ase::RtCall::RtCall | ( | void(*)(T *) | f, |
T * | d | ||
) |
Wrap a single argument void func (T*)
function call with its pointer argument.
Definition at line 138 of file callback.hh.
References ASE_ASSERT_RETURN.
Ase::RtCall::RtCall | ( | void(*)() | f | ) |
Wrap a simple void func ()
function call.
Definition at line 30 of file callback.cc.
References ASE_ASSERT_RETURN.
|
explicit |
Copy function call pointers from another RtCall.
Definition at line 16 of file callback.cc.
References memcpy().
Ase::RtCall::~RtCall | ( | ) |
void Ase::RtCall::invoke | ( | ) |
Invoke the wrapped function call.
Definition at line 43 of file callback.cc.