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.
Context<Type> | A template base class which allows global access to its Type’s current instance. |
Functions | |
GetContext | The current (most recently constructed) active context. |
PreviousContext | The context that was active when the current context was constructed. |
The current (most recently constructed) active context.
static Type *GetContext()
The context that was active when the current context was constructed.
Type *PreviousContext() const
A string pool manages SharedStrings.
class ReflectExport( reflect ) StringPool