Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Contextual Class Reference

#include <Context.h>

Inheritance diagram for Contextual:
Inheritance graph
[legend]
Collaboration diagram for Contextual:
Collaboration graph
[legend]

Public Member Functions

 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...
 

Static Public Member Functions

template<class T >
static Cloner< Context, T > & getCloner ()
 

Protected Attributes

ContextcontextPtr
 

Detailed Description

Parameters
BC- Context base class (Context or SmartContext)

Member Function Documentation

◆ getContext()

T& getContext ( ) const
inline

If context has been set, returns it through a cast to base class Context.

Returns the linked context. Risky: The actual object may be a derived class.


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