Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
Ase::RtCall Struct Reference

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.
 

Detailed Description

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

Definition at line 91 of file callback.hh.

Constructor & Destructor Documentation

◆ RtCall() [1/4]

template<typename T >
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.

◆ RtCall() [2/4]

template<typename T >
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.

◆ RtCall() [3/4]

Ase::RtCall::RtCall ( void(*)()  f)

Wrap a simple void func () function call.

Definition at line 30 of file callback.cc.

References ASE_ASSERT_RETURN.

◆ RtCall() [4/4]

Ase::RtCall::RtCall ( const RtCall call)
explicit

Copy function call pointers from another RtCall.

Definition at line 16 of file callback.cc.

References memcpy().

◆ ~RtCall()

Ase::RtCall::~RtCall ( )

Clear function pointers.

Definition at line 11 of file callback.cc.

References memset().

Member Function Documentation

◆ invoke()

void Ase::RtCall::invoke ( )

Invoke the wrapped function call.

Definition at line 43 of file callback.cc.


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