ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::GlobalFunctionCallback< T > Class Template Reference

GlobalFunctionCallback<T> is a simple wrapper for global C functions. More...

#include <callback.h>

Inheritance diagram for Common::GlobalFunctionCallback< T >:
Collaboration diagram for Common::GlobalFunctionCallback< T >:

List of all members.

Public Member Functions

 GlobalFunctionCallback (GlobalFunction cb)
virtual ~GlobalFunctionCallback ()
virtual void operator() (T data)

Private Types

typedef void(* GlobalFunction )(T result)

Private Attributes

GlobalFunction _callback

Detailed Description

template<typename T>
class Common::GlobalFunctionCallback< T >

GlobalFunctionCallback<T> is a simple wrapper for global C functions.

If there is a method, which accepts BaseCallback<T>, you can easily pass your C function by passing new GlobalFunctionCallback<T>(yourFunction)

Definition at line 56 of file callback.h.


Member Typedef Documentation

template<typename T >
typedef void(* Common::GlobalFunctionCallback< T >::GlobalFunction)(T result) [private]

Definition at line 57 of file callback.h.


Constructor & Destructor Documentation

template<typename T >
Common::GlobalFunctionCallback< T >::GlobalFunctionCallback ( GlobalFunction  cb  )  [inline]

Definition at line 61 of file callback.h.

template<typename T >
virtual Common::GlobalFunctionCallback< T >::~GlobalFunctionCallback (  )  [inline, virtual]

Definition at line 62 of file callback.h.


Member Function Documentation

template<typename T >
virtual void Common::GlobalFunctionCallback< T >::operator() ( data  )  [inline, virtual]

Implements Common::BaseCallback< T >.

Definition at line 63 of file callback.h.


Member Data Documentation

template<typename T >
GlobalFunction Common::GlobalFunctionCallback< T >::_callback [private]

Definition at line 58 of file callback.h.


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


Generated on Sat Jan 12 2019 05:04:00 for ResidualVM by doxygen 1.7.1
curved edge   curved edge