LLDB mainline
|
#include <VariableList.h>
Public Types | |
typedef collection::iterator | iterator |
typedef collection::const_iterator | const_iterator |
Public Member Functions | |
VariableList () | |
virtual | ~VariableList () |
void | AddVariable (const lldb::VariableSP &var_sp) |
bool | AddVariableIfUnique (const lldb::VariableSP &var_sp) |
void | AddVariables (VariableList *variable_list) |
void | Clear () |
void | Dump (Stream *s, bool show_context) const |
lldb::VariableSP | GetVariableAtIndex (size_t idx) const |
lldb::VariableSP | RemoveVariableAtIndex (size_t idx) |
lldb::VariableSP | FindVariable (ConstString name, bool include_static_members=true) |
lldb::VariableSP | FindVariable (ConstString name, lldb::ValueType value_type, bool include_static_members=true) |
uint32_t | FindVariableIndex (const lldb::VariableSP &var_sp) |
size_t | AppendVariablesIfUnique (VariableList &var_list) |
size_t | AppendVariablesIfUnique (const RegularExpression ®ex, VariableList &var_list, size_t &total_matches) |
size_t | AppendVariablesWithScope (lldb::ValueType type, VariableList &var_list, bool if_unique=true) |
uint32_t | FindIndexForVariable (Variable *variable) |
size_t | MemorySize () const |
size_t | GetSize () const |
bool | Empty () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
Protected Attributes | |
collection | m_variables |
Private Types | |
typedef std::vector< lldb::VariableSP > | collection |
Private Member Functions | |
VariableList (const VariableList &)=delete | |
const VariableList & | operator= (const VariableList &)=delete |
Definition at line 18 of file VariableList.h.
|
private |
Definition at line 19 of file VariableList.h.
typedef collection::const_iterator lldb_private::VariableList::const_iterator |
Definition at line 71 of file VariableList.h.
typedef collection::iterator lldb_private::VariableList::iterator |
Definition at line 70 of file VariableList.h.
VariableList::VariableList | ( | ) |
Definition at line 20 of file VariableList.cpp.
Referenced by MemorySize().
|
virtualdefault |
|
privatedelete |
void VariableList::AddVariable | ( | const lldb::VariableSP & | var_sp | ) |
Definition at line 25 of file VariableList.cpp.
References m_variables.
Referenced by lldb_private::Block::AppendBlockVariables(), lldb_private::Block::AppendVariables(), AppendVariablesWithScope(), and lldb_private::npdb::SymbolFileNativePDB::FindGlobalVariables().
bool VariableList::AddVariableIfUnique | ( | const lldb::VariableSP & | var_sp | ) |
Definition at line 29 of file VariableList.cpp.
References FindVariableIndex(), m_variables, and UINT32_MAX.
Referenced by AppendVariablesIfUnique(), AppendVariablesWithScope(), SymbolFileDWARF::ParseAndAppendGlobalVariable(), SymbolFilePDB::ParseVariables(), and SymbolFileDWARF::PopulateBlockVariableList().
void VariableList::AddVariables | ( | VariableList * | variable_list | ) |
Definition at line 37 of file VariableList.cpp.
References m_variables.
size_t VariableList::AppendVariablesIfUnique | ( | const RegularExpression & | regex, |
VariableList & | var_list, | ||
size_t & | total_matches | ||
) |
Definition at line 111 of file VariableList.cpp.
References AddVariableIfUnique(), end(), GetSize(), and m_variables.
size_t VariableList::AppendVariablesIfUnique | ( | VariableList & | var_list | ) |
Definition at line 103 of file VariableList.cpp.
References AddVariableIfUnique(), end(), GetSize(), and m_variables.
Referenced by CommandObjectFrameVariable::DoExecute(), and lldb::SBFrame::FindValue().
size_t VariableList::AppendVariablesWithScope | ( | lldb::ValueType | type, |
VariableList & | var_list, | ||
bool | if_unique = true |
||
) |
Definition at line 128 of file VariableList.cpp.
References AddVariable(), AddVariableIfUnique(), end(), GetSize(), and m_variables.
Referenced by lldb_private::FormatEntity::Format(), lldb::SBFunction::GetArgumentName(), and lldb_private::CPlusPlusLanguage::GetFunctionDisplayName().
|
inline |
Definition at line 73 of file VariableList.h.
References m_variables.
Referenced by FindIndexForVariable().
|
inline |
Definition at line 75 of file VariableList.h.
References m_variables.
void VariableList::Clear | ( | ) |
Definition at line 45 of file VariableList.cpp.
References m_variables.
Referenced by lldb_private::Variable::GetValuesForVariableExpressionPath().
void VariableList::Dump | ( | Stream * | s, |
bool | show_context | ||
) | const |
Definition at line 167 of file VariableList.cpp.
References end(), and m_variables.
|
inline |
Definition at line 68 of file VariableList.h.
References m_variables.
Referenced by CommandObjectTargetVariable::DumpGlobalVariableList(), and lldb::SBTarget::FindGlobalVariables().
|
inline |
Definition at line 74 of file VariableList.h.
References m_variables.
Referenced by AppendVariablesIfUnique(), AppendVariablesWithScope(), Dump(), FindIndexForVariable(), FindVariable(), FindVariableIndex(), and MemorySize().
|
inline |
Definition at line 76 of file VariableList.h.
References m_variables.
Definition at line 145 of file VariableList.cpp.
References begin(), end(), m_variables, and UINT32_MAX.
Referenced by lldb_private::StackFrame::GetValueObjectForFrameVariable().
VariableSP VariableList::FindVariable | ( | ConstString | name, |
bool | include_static_members = true |
||
) |
Definition at line 72 of file VariableList.cpp.
References end(), and m_variables.
Referenced by lldb::SBFrame::FindValue(), lldb_private::StackFrame::FindVariable(), lldb_private::StackFrame::GetValueForVariableExpressionPath(), lldb_private::ClangExpressionDeclMap::LookUpLldbClass(), and lldb_private::ClangExpressionDeclMap::LookUpLldbObjCClass().
VariableSP VariableList::FindVariable | ( | ConstString | name, |
lldb::ValueType | value_type, | ||
bool | include_static_members = true |
||
) |
Definition at line 87 of file VariableList.cpp.
References end(), and m_variables.
uint32_t VariableList::FindVariableIndex | ( | const lldb::VariableSP & | var_sp | ) |
Definition at line 63 of file VariableList.cpp.
References end(), m_variables, and UINT32_MAX.
Referenced by AddVariableIfUnique().
size_t VariableList::GetSize | ( | ) | const |
Definition at line 165 of file VariableList.cpp.
References m_variables.
Referenced by AppendVariablesIfUnique(), AppendVariablesWithScope(), CommandObjectTargetVariable::DoExecute(), CommandObjectFrameVariable::DoExecute(), lldb_private::ClangExpressionDeclMap::FindGlobalVariable(), SymbolFileDWARF::FindGlobalVariables(), SymbolFileDWARFDebugMap::FindGlobalVariables(), SymbolFilePDB::FindGlobalVariables(), lldb_private::FormatEntity::Format(), lldb_private::CPlusPlusLanguage::GetFunctionDisplayName(), GetSymbolDeclarationFromAddress(), lldb_private::StackFrame::GetValueObjectForFrameVariable(), lldb_private::Variable::GetValuesForVariableExpressionPath(), CommandObjectTargetVariable::GetVariableCallback(), lldb::SBFrame::GetVariables(), lldb_private::FormatEntity::PrettyPrintFunctionArguments(), and SymbolFileDWARFDebugMap::PrivateFindGlobalVariables().
VariableSP VariableList::GetVariableAtIndex | ( | size_t | idx | ) | const |
Definition at line 47 of file VariableList.cpp.
References m_variables.
Referenced by CommandObjectTargetVariable::DoExecute(), CommandObjectFrameVariable::DoExecute(), lldb_private::ClangExpressionDeclMap::FindGlobalVariable(), SymbolFileDWARF::FindGlobalVariables(), lldb::SBFunction::GetArgumentName(), GetSymbolDeclarationFromAddress(), lldb_private::Variable::GetValuesForVariableExpressionPath(), and lldb_private::FormatEntity::PrettyPrintFunctionArguments().
size_t VariableList::MemorySize | ( | ) | const |
Definition at line 157 of file VariableList.cpp.
References end(), m_variables, and VariableList().
|
privatedelete |
VariableSP VariableList::RemoveVariableAtIndex | ( | size_t | idx | ) |
Definition at line 54 of file VariableList.cpp.
References m_variables.
Referenced by SymbolFileDWARF::FindGlobalVariables(), and lldb_private::Variable::GetValuesForVariableExpressionPath().
|
protected |
Definition at line 79 of file VariableList.h.
Referenced by AddVariable(), AddVariableIfUnique(), AddVariables(), AppendVariablesIfUnique(), AppendVariablesWithScope(), begin(), Clear(), Dump(), Empty(), end(), FindIndexForVariable(), FindVariable(), FindVariableIndex(), GetSize(), GetVariableAtIndex(), MemorySize(), and RemoveVariableAtIndex().