cisst-saw
Loading...
Searching...
No Matches
osaCallBackBase< _objectType, _callBackMethodType, _userDataType > Struct Template Reference

#include <osaThreadAdapter.h>

Public Types

typedef osaCallBackBase osaCallBackBaseType

Public Member Functions

 osaCallBackBase (_objectType *obj, _callBackMethodType callBackFunction, _userDataType userData)

Public Attributes

_objectType * Obj
_callBackMethodType CallBackFunction
_userDataType UserData

Detailed Description

template<class _objectType, class _callBackMethodType, class _userDataType>
struct osaCallBackBase< _objectType, _callBackMethodType, _userDataType >

This struct is used as base class for all callback adapters. It just declares and initializes the adapter's member data, so we don't have to do this separately for each single adapter.

Member Typedef Documentation

◆ osaCallBackBaseType

template<class _objectType, class _callBackMethodType, class _userDataType>
typedef osaCallBackBase osaCallBackBase< _objectType, _callBackMethodType, _userDataType >::osaCallBackBaseType

Typedef for osaCallBackBase

Constructor & Destructor Documentation

◆ osaCallBackBase()

template<class _objectType, class _callBackMethodType, class _userDataType>
osaCallBackBase< _objectType, _callBackMethodType, _userDataType >::osaCallBackBase ( _objectType * obj,
_callBackMethodType callBackFunction,
_userDataType userData )
inline

Constructor. Stores the pointer to member function of object class _objectType and the user object of class _userDataType.

Parameters
objThe pointer to the object containing the member function to be called.
callBackFunctionThe pointer to the member function to be called.
userDataThe user data to be passed to the callback member function.

Member Data Documentation

◆ CallBackFunction

template<class _objectType, class _callBackMethodType, class _userDataType>
_callBackMethodType osaCallBackBase< _objectType, _callBackMethodType, _userDataType >::CallBackFunction

The pointer to the member function to be called.

◆ Obj

template<class _objectType, class _callBackMethodType, class _userDataType>
_objectType* osaCallBackBase< _objectType, _callBackMethodType, _userDataType >::Obj

The pointer to the object containing the member function to be called.

◆ UserData

template<class _objectType, class _callBackMethodType, class _userDataType>
_userDataType osaCallBackBase< _objectType, _callBackMethodType, _userDataType >::UserData

A copy of the user data to be passed to the callback member function.


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