Class ScopeManager
Defined in File scope.h
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 inline ScopeManager &GetInstance() noexcept
Get instance of ScopeManager.
- Returns
Instance of ScopeManager.
-
ScopeManager(const ScopeManager&) = delete