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

#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 &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
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
llvm::ArrayRef< lldb::VariableSPtoArrayRef ()
 

Protected Attributes

collection m_variables
 

Private Types

typedef std::vector< lldb::VariableSPcollection
 

Private Member Functions

 VariableList (const VariableList &)=delete
 
const VariableListoperator= (const VariableList &)=delete
 

Detailed Description

Definition at line 18 of file VariableList.h.

Member Typedef Documentation

◆ collection

Definition at line 19 of file VariableList.h.

◆ const_iterator

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

Definition at line 71 of file VariableList.h.

◆ iterator

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

Definition at line 70 of file VariableList.h.

Constructor & Destructor Documentation

◆ VariableList() [1/2]

VariableList::VariableList ( )

Definition at line 20 of file VariableList.cpp.

Referenced by MemorySize().

◆ ~VariableList()

VariableList::~VariableList ( )
virtualdefault

◆ VariableList() [2/2]

lldb_private::VariableList::VariableList ( const VariableList )
privatedelete

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 ( 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.

◆ AppendVariablesIfUnique() [2/2]

size_t VariableList::AppendVariablesIfUnique ( VariableList var_list)

Definition at line 103 of file VariableList.cpp.

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

Referenced by lldb::SBFrame::FindValue().

◆ AppendVariablesWithScope()

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

◆ begin() [1/2]

iterator lldb_private::VariableList::begin ( )
inline

Definition at line 73 of file VariableList.h.

References m_variables.

Referenced by FindIndexForVariable().

◆ begin() [2/2]

const_iterator lldb_private::VariableList::begin ( ) const
inline

Definition at line 75 of file VariableList.h.

References m_variables.

◆ Clear()

void VariableList::Clear ( )

Definition at line 45 of file VariableList.cpp.

References m_variables.

Referenced by lldb_private::Variable::GetValuesForVariableExpressionPath().

◆ Dump()

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

Definition at line 167 of file VariableList.cpp.

References end(), and m_variables.

◆ Empty()

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

◆ end() [1/2]

iterator lldb_private::VariableList::end ( )
inline

◆ end() [2/2]

const_iterator lldb_private::VariableList::end ( ) const
inline

Definition at line 76 of file VariableList.h.

References m_variables.

◆ FindIndexForVariable()

uint32_t VariableList::FindIndexForVariable ( Variable variable)

◆ 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 end(), and m_variables.

◆ FindVariableIndex()

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().

◆ 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 end(), m_variables, and VariableList().

◆ operator=()

const VariableList & lldb_private::VariableList::operator= ( const VariableList )
privatedelete

◆ RemoveVariableAtIndex()

VariableSP VariableList::RemoveVariableAtIndex ( size_t  idx)

◆ toArrayRef()

llvm::ArrayRef< lldb::VariableSP > lldb_private::VariableList::toArrayRef ( )
inline

Definition at line 78 of file VariableList.h.

References m_variables.

Referenced by CommandObjectFrameVariable::findUniqueRegexMatches().

Member Data Documentation

◆ m_variables

collection lldb_private::VariableList::m_variables
protected

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