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.
|
|
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.
|
| |
- Note
- does not work with all stl containers, i.e. std::map
◆ _ECallbackType
| Enumerator |
|---|
| cbPostOutsideLock |
callback is fired on leaving the tree inside the lock-guarded area
|