Registers the given function as a callback to be called when a primitive is called in the registering context. More...
Public Member Functions | |
template<typename Function > | |
callback (Function &&f) | |
Creates a new callback object that is registered in the current context. | |
callback (callback const &)=delete | |
callback & | operator= (callback const &)=delete |
Static Public Member Functions | |
static void | call (runtime::context_id const &id, const char *s) |
Call all registered callback functions for the given context id and passes the given string. | |
Public Types | |
typedef runtime::full_location | key_type |
Registers the given function as a callback to be called when a primitive is called in the registering context.
The registered functions have to have the following signature
where s
is the name of the primitive that called it.