OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::util::CallbackWrapper< FunctionPtrType > Class Template Reference

A class template turning a callback with some number of arguments, with a userdata pointer last, into a function object. More...

#include <osvr/Util/CallbackWrapper.h>

Public Types

typedef boost::remove_pointer
< FunctionPtrType >::type 
FunctionType
 Function type (remove pointer - computed)
 
typedef boost::function_traits
< FunctionType >::result_type 
ReturnType
 Return type of the function (computed)
 

Public Member Functions

 CallbackWrapper (FunctionPtrType f, void *userData)
 Constructor from function pointer and user data pointer.
 
template<typename... Args>
ReturnType operator() (Args &&...args) const
 Function call operator with non-void return.
 

Detailed Description

template<typename FunctionPtrType>
class osvr::util::CallbackWrapper< FunctionPtrType >

A class template turning a callback with some number of arguments, with a userdata pointer last, into a function object.

Definition at line 45 of file CallbackWrapper.h.


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