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 QCString &name, ScopedTypeVariant stv) |
const ScopedTypeVariant * | findVariable (const QCString &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 74 of file scopedtypevariant.h.
using VariableContext::Scope = std::unordered_map<std::string,ScopedTypeVariant> |
Definition at line 77 of file scopedtypevariant.h.
|
inline |
Definition at line 99 of file scopedtypevariant.h.
References m_globalScope, m_scopes, and QCString::str().
|
inline |
|
inline |
Definition at line 90 of file scopedtypevariant.h.
References m_globalScope, and m_scopes.
|
inline |
Definition at line 95 of file scopedtypevariant.h.
References m_scopes.
|
inline |
Definition at line 104 of file scopedtypevariant.h.
References QCString::isEmpty(), m_globalScope, m_scopes, and QCString::str().
|
inline |
Definition at line 83 of file scopedtypevariant.h.
References m_scopes.
|
inline |
Definition at line 79 of file scopedtypevariant.h.
References m_scopes.
|
private |
Definition at line 132 of file scopedtypevariant.h.
Referenced by addVariable(), clear(), and findVariable().
|
private |
Definition at line 133 of file scopedtypevariant.h.
Referenced by addVariable(), atGlobalScope(), clear(), clearExceptGlobal(), findVariable(), popScope(), and pushScope().