olp-cpp-sdk
1.22.0
|
Initializes the Context
class in its constructor (if it is not already initialized) and deinitializes in its destructor (if there are no other Scope
instances).
More...
#include <Context.h>
Public Member Functions | |
Scope () | |
Creates the Scope instance. More... | |
Scope (const Scope &)=delete | |
The deleted copy constructor. | |
Scope & | operator= (const Scope &)=delete |
The deleted assignment operator. | |
~Scope () | |
Invokes deinitialized callbacks of the Context class. More... | |
Initializes the Context
class in its constructor (if it is not already initialized) and deinitializes in its destructor (if there are no other Scope
instances).
Instead of calling Context::init()
and Context::deinit()
manually, instantiate the Context::Scope()
object.
olp::context::Context::Scope::Scope | ( | ) |
Creates the Scope
instance.
The Scope
instance is used to initialize the Context
class. It also automatically initializes the Context
callbacks.
InitializedCallback
for more information. olp::context::Context::Scope::~Scope | ( | ) |
Invokes deinitialized callbacks of the Context
class.
DeinitializedCallback
for more information.