OpenNI 1.5.4
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
XnEventInterfaceT< FuncPtr > Class Template Reference

#include <XnEventT.h>

Public Types

typedef FuncPtr HandlerPtr
 
typedef XnCallbackT< FuncPtr > TCallback
 
typedef XnEventInterfaceT TInterface
 

Public Member Functions

 ~XnEventInterfaceT ()
 
XnStatus Register (FuncPtr pFunc, void *pCookie, XnCallbackHandle &hCallback)
 
XnStatus Unregister (XnCallbackHandle hCallback)
 

Protected Types

typedef XnListT< TCallback * > CallbackPtrList
 

Protected Member Functions

 XnEventInterfaceT ()
 
 XnEventInterfaceT (const XnEventInterfaceT &other)
 
XnEventInterfaceToperator= (const XnEventInterfaceT &other)
 
XnStatus Clear ()
 
XnStatus ApplyListChanges ()
 
XnBool RemoveCallback (CallbackPtrList &list, TCallback *pCallback)
 

Protected Attributes

XN_CRITICAL_SECTION_HANDLE m_hLock
 
CallbackPtrList m_callbacks
 
CallbackPtrList m_toAdd
 
CallbackPtrList m_toRemove
 

Detailed Description

template<typename FuncPtr>
class XnEventInterfaceT< FuncPtr >

A class that contains the interface of an event (i.e. Register and Unregister)

Template Parameters
FuncPtrThe callback signature

Member Typedef Documentation

template<typename FuncPtr>
typedef XnListT<TCallback*> XnEventInterfaceT< FuncPtr >::CallbackPtrList
protected
template<typename FuncPtr>
typedef FuncPtr XnEventInterfaceT< FuncPtr >::HandlerPtr
template<typename FuncPtr>
typedef XnCallbackT<FuncPtr> XnEventInterfaceT< FuncPtr >::TCallback
template<typename FuncPtr>
typedef XnEventInterfaceT XnEventInterfaceT< FuncPtr >::TInterface

Constructor & Destructor Documentation

template<typename FuncPtr>
XnEventInterfaceT< FuncPtr >::~XnEventInterfaceT ( )
inline
template<typename FuncPtr>
XnEventInterfaceT< FuncPtr >::XnEventInterfaceT ( )
inlineprotected
template<typename FuncPtr>
XnEventInterfaceT< FuncPtr >::XnEventInterfaceT ( const XnEventInterfaceT< FuncPtr > &  other)
inlineprotected

Member Function Documentation

template<typename FuncPtr>
XnStatus XnEventInterfaceT< FuncPtr >::ApplyListChanges ( )
inlineprotected
template<typename FuncPtr>
XnStatus XnEventInterfaceT< FuncPtr >::Clear ( )
inlineprotected
template<typename FuncPtr>
XnEventInterfaceT& XnEventInterfaceT< FuncPtr >::operator= ( const XnEventInterfaceT< FuncPtr > &  other)
inlineprotected
template<typename FuncPtr>
XnStatus XnEventInterfaceT< FuncPtr >::Register ( FuncPtr  pFunc,
void *  pCookie,
XnCallbackHandle hCallback 
)
inline
template<typename FuncPtr>
XnBool XnEventInterfaceT< FuncPtr >::RemoveCallback ( CallbackPtrList list,
TCallback pCallback 
)
inlineprotected
template<typename FuncPtr>
XnStatus XnEventInterfaceT< FuncPtr >::Unregister ( XnCallbackHandle  hCallback)
inline

Member Data Documentation

template<typename FuncPtr>
CallbackPtrList XnEventInterfaceT< FuncPtr >::m_callbacks
protected
template<typename FuncPtr>
XN_CRITICAL_SECTION_HANDLE XnEventInterfaceT< FuncPtr >::m_hLock
protected
template<typename FuncPtr>
CallbackPtrList XnEventInterfaceT< FuncPtr >::m_toAdd
protected
template<typename FuncPtr>
CallbackPtrList XnEventInterfaceT< FuncPtr >::m_toRemove
protected

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