LLDB mainline
ValueObjectList.h
Go to the documentation of this file.
1//===-- ValueObjectList.h ---------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_VALUEOBJECT_VALUEOBJECTLIST_H
10#define LLDB_VALUEOBJECT_VALUEOBJECTLIST_H
11
12#include "lldb/lldb-forward.h"
13#include "lldb/lldb-types.h"
14
15#include <vector>
16
17#include <cstddef>
18
19namespace lldb_private {
20class ValueObject;
21
22/// A collection of ValueObject values that.
24public:
25 void Append(const lldb::ValueObjectSP &val_obj_sp);
26
27 void Append(const ValueObjectList &valobj_list);
28
30
31 size_t GetSize() const;
32
33 void Resize(size_t size);
34
36
38
39 void SetValueObjectAtIndex(size_t idx, const lldb::ValueObjectSP &valobj_sp);
40
42
44
45 void Swap(ValueObjectList &value_object_list);
46
47 void Clear() { m_value_objects.clear(); }
48
49 const std::vector<lldb::ValueObjectSP> &GetObjects() const {
50 return m_value_objects;
51 }
52
53protected:
54 typedef std::vector<lldb::ValueObjectSP> collection;
55 // Classes that inherit from ValueObjectList can see and modify these
57};
58
59} // namespace lldb_private
60
61#endif // LLDB_VALUEOBJECT_VALUEOBJECTLIST_H
A collection of ValueObject values that.
void SetValueObjectAtIndex(size_t idx, const lldb::ValueObjectSP &valobj_sp)
const std::vector< lldb::ValueObjectSP > & GetObjects() const
void Append(const lldb::ValueObjectSP &val_obj_sp)
lldb::ValueObjectSP FindValueObjectByValueName(const char *name)
lldb::ValueObjectSP GetValueObjectAtIndex(size_t idx)
lldb::ValueObjectSP FindValueObjectByPointer(ValueObject *valobj)
std::vector< lldb::ValueObjectSP > collection
lldb::ValueObjectSP RemoveValueObjectAtIndex(size_t idx)
lldb::ValueObjectSP FindValueObjectByUID(lldb::user_id_t uid)
void Swap(ValueObjectList &value_object_list)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
uint64_t user_id_t
Definition lldb-types.h:82