clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
//===-- ValueObjectList.h ---------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLDB_CORE_VALUEOBJECTLIST_H
|
|
#define LLDB_CORE_VALUEOBJECTLIST_H
|
|
|
|
#include "lldb/lldb-forward.h"
|
|
#include "lldb/lldb-types.h"
|
|
|
|
#include <vector>
|
|
|
|
#include <cstddef>
|
|
|
|
namespace lldb_private {
|
|
class ValueObject;
|
|
|
|
/// A collection of ValueObject values that.
|
|
class ValueObjectList {
|
|
public:
|
|
const ValueObjectList &operator=(const ValueObjectList &rhs);
|
|
|
|
void Append(const lldb::ValueObjectSP &val_obj_sp);
|
|
|
|
void Append(const ValueObjectList &valobj_list);
|
|
|
|
lldb::ValueObjectSP FindValueObjectByPointer(ValueObject *valobj);
|
|
|
|
size_t GetSize() const;
|
|
|
|
void Resize(size_t size);
|
|
|
|
lldb::ValueObjectSP GetValueObjectAtIndex(size_t idx);
|
|
|
|
lldb::ValueObjectSP RemoveValueObjectAtIndex(size_t idx);
|
|
|
|
void SetValueObjectAtIndex(size_t idx, const lldb::ValueObjectSP &valobj_sp);
|
|
|
|
lldb::ValueObjectSP FindValueObjectByValueName(const char *name);
|
|
|
|
lldb::ValueObjectSP FindValueObjectByUID(lldb::user_id_t uid);
|
|
|
|
void Swap(ValueObjectList &value_object_list);
|
|
|
|
void Clear() { m_value_objects.clear(); }
|
|
|
|
const std::vector<lldb::ValueObjectSP> &GetObjects() const {
|
|
return m_value_objects;
|
|
}
|
|
protected:
|
|
typedef std::vector<lldb::ValueObjectSP> collection;
|
|
// Classes that inherit from ValueObjectList can see and modify these
|
|
collection m_value_objects;
|
|
};
|
|
|
|
} // namespace lldb_private
|
|
|
|
#endif // LLDB_CORE_VALUEOBJECTLIST_H
|