STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Static Public Member Functions | Public Types
stapl::callback Class Reference

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
 
callbackoperator= (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
 

Detailed Description

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

void f(const char* s);

where s is the name of the primitive that called it.


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