LLDB  mainline
Public Member Functions | Protected Types | Protected Attributes | List of all members
lldb_private::VariableList Class Reference

#include <VariableList.h>

Collaboration diagram for lldb_private::VariableList:
Collaboration graph
[legend]

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 &regex, 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
 

Protected Types

typedef std::vector< lldb::VariableSP > collection
 
typedef collection::iterator iterator
 
typedef collection::const_iterator const_iterator
 

Protected Attributes

collection m_variables
 

Detailed Description

Definition at line 18 of file VariableList.h.

Member Typedef Documentation

◆ collection

typedef std::vector<lldb::VariableSP> lldb_private::VariableList::collection
protected

Definition at line 69 of file VariableList.h.

◆ const_iterator

typedef collection::const_iterator lldb_private::VariableList::const_iterator
protected

Definition at line 71 of file VariableList.h.

◆ iterator

typedef collection::iterator lldb_private::VariableList::iterator
protected

Definition at line 70 of file VariableList.h.

Constructor & Destructor Documentation

◆ VariableList()

VariableList::VariableList ( )

Definition at line 20 of file VariableList.cpp.

Referenced by MemorySize().

◆ ~VariableList()

VariableList::~VariableList ( )
virtual

Definition at line 23 of file VariableList.cpp.

Member Function Documentation

◆ AddVariable()

void VariableList::AddVariable ( const lldb::VariableSP &  var_sp)

◆ AddVariableIfUnique()

bool VariableList::AddVariableIfUnique ( const lldb::VariableSP &  var_sp)

◆ AddVariables()

void VariableList::AddVariables ( VariableList variable_list)

Definition at line 37 of file VariableList.cpp.

References m_variables.

◆ AppendVariablesIfUnique() [1/2]

size_t VariableList::AppendVariablesIfUnique ( VariableList var_list)

◆ AppendVariablesIfUnique() [2/2]

size_t VariableList::AppendVariablesIfUnique ( const RegularExpression regex,
VariableList var_list,
size_t &  total_matches 
)

Definition at line 111 of file VariableList.cpp.

References AddVariableIfUnique(), GetSize(), and m_variables.

◆ AppendVariablesWithScope()

size_t VariableList::AppendVariablesWithScope ( lldb::ValueType  type,
VariableList var_list,
bool  if_unique = true 
)

◆ Clear()

void VariableList::Clear ( )

Definition at line 45 of file VariableList.cpp.

References m_variables.

◆ Dump()

void VariableList::Dump ( Stream s,
bool  show_context 
) const

Definition at line 167 of file VariableList.cpp.

References m_variables.

◆ Empty()

bool lldb_private::VariableList::Empty ( ) const
inline

Definition at line 66 of file VariableList.h.

References m_variables.

◆ FindIndexForVariable()

uint32_t VariableList::FindIndexForVariable ( Variable variable)

Definition at line 145 of file VariableList.cpp.

References m_variables, and UINT32_MAX.

Referenced by lldb_private::StackFrame::GetValueObjectForFrameVariable().

◆ FindVariable() [1/2]

VariableSP VariableList::FindVariable ( ConstString  name,
bool  include_static_members = true 
)

◆ FindVariable() [2/2]

VariableSP VariableList::FindVariable ( ConstString  name,
lldb::ValueType  value_type,
bool  include_static_members = true 
)

Definition at line 87 of file VariableList.cpp.

References m_variables.

◆ FindVariableIndex()

uint32_t VariableList::FindVariableIndex ( const lldb::VariableSP &  var_sp)

Definition at line 63 of file VariableList.cpp.

References m_variables, and UINT32_MAX.

Referenced by AddVariableIfUnique().

◆ GetSize()

size_t VariableList::GetSize ( ) const

◆ GetVariableAtIndex()

VariableSP VariableList::GetVariableAtIndex ( size_t  idx) const

◆ MemorySize()

size_t VariableList::MemorySize ( ) const

Definition at line 157 of file VariableList.cpp.

References m_variables, and VariableList().

◆ RemoveVariableAtIndex()

VariableSP VariableList::RemoveVariableAtIndex ( size_t  idx)

Definition at line 54 of file VariableList.cpp.

References m_variables.

Referenced by SymbolFileDWARF::FindGlobalVariables().

Member Data Documentation

◆ m_variables

collection lldb_private::VariableList::m_variables
protected

The documentation for this class was generated from the following files: