GenApi  3.5.1
Classes | Typedefs | Enumerations | Functions

Implementation helpers for CNodeCallbackDefines a bunch of templates for creating callback-functors taking a INode pointer and returning void. More...

Go to the source code of this file.

Classes

class  CNodeCallback
 callback body instance for INode pointers More...
 
class  Function_NodeCallback< Function >
 Container for a function pointer. More...
 
class  Member_NodeCallback< Client, Member >
 Container for a member function pointer. More...
 

Typedefs

typedef enum GENAPI_NAMESPACE::_ECallbackType ECallbackType
 the type of callback
 

Enumerations

enum  _ECallbackType { , cbPostOutsideLock = 2 }
 the type of callback More...
 

Functions

template<class Function >
CNodeCallback * make_NodeCallback (INode *pNode, Function function, ECallbackType CallbackType)
 make a new callback object for C functions
 
template<class Function >
intptr_t Register (INode *pNode, Function f, ECallbackType CallbackType=cbPostInsideLock)
 Register a C-function as a callback.
 
template<class Client , class Member >
CNodeCallback * make_NodeCallback (INode *pNode, Client &client, Member member, ECallbackType CallbackType)
 make a new callback object for member functions
 
template<class Client , class Member >
intptr_t Register (INode *pNode, Client &c, Member m, ECallbackType CallbackType=cbPostInsideLock)
 Register a C++-member function a callback.
 
GENAPI_DECL void Deregister (GENAPI_NAMESPACE::CallbackHandleType pCallbackInfo)
 Unregistering callback by handle.
 

Detailed Description

Note
does not work with all stl containers, i.e. std::map

Enumeration Type Documentation

◆ _ECallbackType

enum _ECallbackType
Enumerator
cbPostOutsideLock 

callback is fired on leaving the tree inside the lock-guarded area