Context<Type>

A template base class which allows global access to its Type’s current instance.

Contexts are a lightweight and powerful (if thread unsafe) way of passing data across the callstack.

Note: Contexts are only used in Reflect to provide access to the global StringPool used by SharedStrings.

Summary
Context<Type>A template base class which allows global access to its Type’s current instance.
Functions
GetContextThe current (most recently constructed) active context.
PreviousContextThe context that was active when the current context was constructed.

Functions

GetContext

static Type *GetContext()

Returns

The current (most recently constructed) active context.

PreviousContext

Type *PreviousContext() const

The context that was active when the current context was constructed.  Some contexts do not want to expose this method, so it is a protected method, use an accessor declaration to expose it when desired.

static Type *GetContext()
The current (most recently constructed) active context.
Type *PreviousContext() const
The context that was active when the current context was constructed.
class ReflectExport(reflect) StringPool
A string pool manages SharedStrings.
SharedStrings are like ConstStrings except their string pointers are guaranteed to be one-one with their data.
Close