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

"lldb/Expression/ExpressionVariable.h" A list of variable references. More...

#include <ExpressionVariable.h>

Inheritance diagram for lldb_private::ExpressionVariableList:
Inheritance graph
[legend]

Public Member Functions

size_t GetSize ()
 Implementation of methods in ExpressionVariableListBase.
 
lldb::ExpressionVariableSP GetVariableAtIndex (size_t index)
 
size_t AddVariable (const lldb::ExpressionVariableSP &var_sp)
 
lldb::ExpressionVariableSP AddNewlyConstructedVariable (ExpressionVariable *var)
 
bool ContainsVariable (const lldb::ExpressionVariableSP &var_sp)
 
lldb::ExpressionVariableSP GetVariable (ConstString name)
 Finds a variable by name in the list.
 
lldb::ExpressionVariableSP GetVariable (llvm::StringRef name)
 
void RemoveVariable (lldb::ExpressionVariableSP var_sp)
 
void Clear ()
 

Private Attributes

std::vector< lldb::ExpressionVariableSPm_variables
 

Detailed Description

"lldb/Expression/ExpressionVariable.h" A list of variable references.

This class stores variables internally, acting as the permanent store.

Definition at line 120 of file ExpressionVariable.h.

Member Function Documentation

◆ AddNewlyConstructedVariable()

lldb::ExpressionVariableSP lldb_private::ExpressionVariableList::AddNewlyConstructedVariable ( ExpressionVariable var)
inline

◆ AddVariable()

size_t lldb_private::ExpressionVariableList::AddVariable ( const lldb::ExpressionVariableSP var_sp)
inline

Definition at line 132 of file ExpressionVariable.h.

References m_variables.

Referenced by lldb_private::ClangExpressionDeclMap::AddValueToStruct().

◆ Clear()

void lldb_private::ExpressionVariableList::Clear ( )
inline

Definition at line 197 of file ExpressionVariable.h.

References m_variables.

◆ ContainsVariable()

bool lldb_private::ExpressionVariableList::ContainsVariable ( const lldb::ExpressionVariableSP var_sp)
inline

Definition at line 144 of file ExpressionVariable.h.

References m_variables.

◆ GetSize()

size_t lldb_private::ExpressionVariableList::GetSize ( )
inline

◆ GetVariable() [1/2]

lldb::ExpressionVariableSP lldb_private::ExpressionVariableList::GetVariable ( ConstString  name)
inline

Finds a variable by name in the list.

Parameters
[in]nameThe name of the requested variable.
Returns
The variable requested, or nullptr if that variable is not in the list.

Definition at line 161 of file ExpressionVariable.h.

References GetSize(), and GetVariableAtIndex().

◆ GetVariable() [2/2]

lldb::ExpressionVariableSP lldb_private::ExpressionVariableList::GetVariable ( llvm::StringRef  name)
inline

Definition at line 172 of file ExpressionVariable.h.

References GetSize(), and GetVariableAtIndex().

◆ GetVariableAtIndex()

lldb::ExpressionVariableSP lldb_private::ExpressionVariableList::GetVariableAtIndex ( size_t  index)
inline

◆ RemoveVariable()

void lldb_private::ExpressionVariableList::RemoveVariable ( lldb::ExpressionVariableSP  var_sp)
inline

Definition at line 185 of file ExpressionVariable.h.

References m_variables.

Member Data Documentation

◆ m_variables

std::vector<lldb::ExpressionVariableSP> lldb_private::ExpressionVariableList::m_variables
private

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