olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::context::Context::Scope Class Reference

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.
 
Scopeoperator= (const Scope &)=delete
 The deleted assignment operator.
 
 ~Scope ()
 Invokes deinitialized callbacks of the Context class. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Scope()

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.

See also
InitializedCallback for more information.

◆ ~Scope()

olp::context::Context::Scope::~Scope ( )

Invokes deinitialized callbacks of the Context class.

See also
DeinitializedCallback for more information.

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