Class ScopeManager

Class Documentation

class ScopeManager

Public Functions

ScopeManager(const ScopeManager&) = delete

Disable the default constructor.

~ScopeManager() = default

Destructor.

void EnterScope(const ScopePtr &scope)

Enter the scope.

Parameters

scope[in] The scope.

void LeaveScope(const ScopePtr &scope) noexcept

Leave the scope.

Parameters

scope[in] The scope.

ScopePtr GetCurrentScope()

Get the current scope.

Returns

The current scope.

void ClearScope()

Clear the scope.

Public Static Functions

static ScopeManager &GetInstance() noexcept

Get instance of ScopeManager.

Returns

Instance of ScopeManager.