|
Doxygen
|
#include <src/scopedtypevariant.h>
Public Types | |
| using | Scope = std::unordered_map<std::string,ScopedTypeVariant> |
Public Member Functions | |
| void | pushScope () |
| void | popScope () |
| void | clear () |
| void | clearExceptGlobal () |
| void | addVariable (const DString &name, ScopedTypeVariant stv) |
| const ScopedTypeVariant * | findVariable (const DString &name) |
| bool | atGlobalScope () const |
Private Attributes | |
| Scope | m_globalScope |
| std::vector< Scope > | m_scopes |
Represents a stack of variable to class mappings as found in the code. Each scope is enclosed in pushScope() and popScope() calls. Variables are added by calling addVariables() and one can search for variable using findVariable().
Definition at line 75 of file scopedtypevariant.h.
| using VariableContext::Scope = std::unordered_map<std::string,ScopedTypeVariant> |
Definition at line 78 of file scopedtypevariant.h.
|
inline |
Definition at line 100 of file scopedtypevariant.h.
References m_globalScope, m_scopes, and DString::str().
|
inline |
|
inline |
Definition at line 91 of file scopedtypevariant.h.
References m_globalScope, and m_scopes.
|
inline |
Definition at line 96 of file scopedtypevariant.h.
References m_scopes.
|
inline |
Definition at line 105 of file scopedtypevariant.h.
References DString::empty(), m_globalScope, m_scopes, and DString::str().
|
inline |
Definition at line 84 of file scopedtypevariant.h.
References m_scopes.
|
inline |
Definition at line 80 of file scopedtypevariant.h.
References m_scopes.
|
private |
Definition at line 133 of file scopedtypevariant.h.
Referenced by addVariable(), clear(), and findVariable().
|
private |
Definition at line 134 of file scopedtypevariant.h.
Referenced by addVariable(), atGlobalScope(), clear(), clearExceptGlobal(), findVariable(), popScope(), and pushScope().