OSVR-Core
|
A class template turning a callback with some number of arguments, with a userdata pointer last, into a function object. More...
#include <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. | |
A class template turning a callback with some number of arguments, with a userdata pointer last, into a function object.