OSVR-Core
Public Types | Public Member Functions | List of all members
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 <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.


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