66 if (pos->get() == var_sp.get())
73 bool include_static_members) {
77 if ((*pos)->NameMatches(name)) {
78 if (include_static_members || !(*pos)->IsStaticMember()) {
89 bool include_static_members) {
93 if ((*pos)->NameMatches(name) && (*pos)->GetScope() == value_type) {
94 if (include_static_members || !(*pos)->IsStaticMember()) {
104 const size_t initial_size = var_list.
GetSize();
108 return var_list.
GetSize() - initial_size;
113 size_t &total_matches) {
114 const size_t initial_size = var_list.
GetSize();
117 if ((*pos)->NameMatches(regex)) {
125 return var_list.
GetSize() - initial_size;
131 const size_t initial_size = var_list.
GetSize();
134 if ((*pos)->GetScope() == type) {
142 return var_list.
GetSize() - initial_size;
151 if ((*pos).get() == variable)
152 return std::distance(
begin, pos);
161 mem_size += (*pos)->MemorySize();
174 (*pos)->Dump(s, show_context);
A uniqued constant string class.
A stream class that can stream formatted output to a file.
void Dump(Stream *s, bool show_context) const
bool AddVariableIfUnique(const lldb::VariableSP &var_sp)
lldb::VariableSP GetVariableAtIndex(size_t idx) const
lldb::VariableSP FindVariable(ConstString name, bool include_static_members=true)
uint32_t FindVariableIndex(const lldb::VariableSP &var_sp)
lldb::VariableSP RemoveVariableAtIndex(size_t idx)
collection::const_iterator const_iterator
uint32_t FindIndexForVariable(Variable *variable)
void AddVariable(const lldb::VariableSP &var_sp)
size_t AppendVariablesWithScope(lldb::ValueType type, VariableList &var_list, bool if_unique=true)
collection::iterator iterator
void AddVariables(VariableList *variable_list)
size_t MemorySize() const
size_t AppendVariablesIfUnique(VariableList &var_list)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Variable > VariableSP