|
Adds class-specific convenience functions. More...
#include <Context.h>
Public Types | |
typedef drain::Cloner< Context, C > | ctx_cloner_t |
Static Public Member Functions | |
static C & | baseCtx () |
static ctx_cloner_t & | getContextCloner () |
Static Public Member Functions inherited from Contextual | |
template<class T > | |
static Cloner< Context, T > & | getCloner () |
Additional Inherited Members | |
Public Member Functions inherited from Contextual | |
Contextual () | |
Sets internal contextPtr to NULL. | |
Contextual (const Contextual &src) | |
Copies base context (even null) of the source. Notice that the actual instance may be of derived class. | |
Contextual (Context &ctx) | |
Copies internal contextPtr. | |
template<class C > | |
void | setContext () |
Sets internal contextPtr to the static source. | |
void | setExternalContext (Context &ctx) |
Sets internal contextPtr to outside target. | |
bool | contextIsSet () const |
True, if contextPtr has been set. | |
template<class T = Context> | |
T & | getContext () const |
If context has been set, returns it through a cast to base class Context. More... | |
Protected Attributes inherited from Contextual | |
Context * | contextPtr |
Adds class-specific convenience functions.