LLDB mainline
ValueObjectConstResultChild.h
Go to the documentation of this file.
1//===-- ValueObjectConstResultChild.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_VALUEOBJECTCONSTRESULTCHILD_H
10#define LLDB_VALUEOBJECT_VALUEOBJECTCONSTRESULTCHILD_H
11
16#include "lldb/lldb-defines.h"
17#include "lldb/lldb-forward.h"
18#include "lldb/lldb-types.h"
19
20#include <cstddef>
21#include <cstdint>
22
23namespace lldb_private {
24class DataExtractor;
25class Status;
26class ValueObject;
27
28// A child of a ValueObjectConstResult.
30public:
32 ValueObject &parent, const CompilerType &compiler_type, ConstString name,
33 uint32_t byte_size, int32_t byte_offset, uint32_t bitfield_bit_size,
34 uint32_t bitfield_bit_offset, bool is_base_class, bool is_deref_of_parent,
35 lldb::addr_t live_address, uint64_t language_flags);
36
38
40
44
46 uint32_t offset, const CompilerType &type, bool can_create,
47 ConstString name_const_str = ConstString()) override;
48
50
51 AddrAndType GetAddressOf(bool scalar_is_load_address = true) override;
52
53 size_t GetPointeeData(DataExtractor &data, uint32_t item_idx = 0,
54 uint32_t item_count = 1) override;
55
56 lldb::ValueObjectSP DoCast(const CompilerType &compiler_type) override;
57
58protected:
60
61private:
62 friend class ValueObject;
65
66 ValueObject *CreateChildAtIndex(size_t idx) override {
67 return m_impl.CreateChildAtIndex(idx);
68 }
70 return m_impl.CreateSyntheticArrayMember(idx);
71 }
72
76};
77
78} // namespace lldb_private
79
80#endif // LLDB_VALUEOBJECT_VALUEOBJECTCONSTRESULTCHILD_H
static llvm::raw_ostream & error(Stream &strm)
Generic representation of a type in a programming language.
A uniqued constant string class.
Definition ConstString.h:40
An data extractor class.
An error handling class.
Definition Status.h:118
ValueObjectChild(ValueObject &parent, const CompilerType &compiler_type, ConstString name, uint64_t byte_size, int32_t byte_offset, uint32_t bitfield_bit_size, uint32_t bitfield_bit_offset, bool is_base_class, bool is_deref_of_parent, AddressType child_ptr_or_ref_addr_type, uint64_t language_flags)
lldb::ValueObjectSP GetSyntheticChildAtOffset(uint32_t offset, const CompilerType &type, bool can_create, ConstString name_const_str=ConstString()) override
AddrAndType GetAddressOf(bool scalar_is_load_address=true) override
ValueObject * CreateSyntheticArrayMember(size_t idx) override
Should only be called by ValueObject::GetSyntheticArrayMember().
size_t GetPointeeData(DataExtractor &data, uint32_t item_idx=0, uint32_t item_count=1) override
ValueObjectConstResultChild(const ValueObjectConstResultChild &)=delete
const ValueObjectConstResultChild & operator=(const ValueObjectConstResultChild &)=delete
ValueObject * CreateChildAtIndex(size_t idx) override
Should only be called by ValueObject::GetChildAtIndex().
ValueObjectConstResultChild(ValueObject &parent, const CompilerType &compiler_type, ConstString name, uint32_t byte_size, int32_t byte_offset, uint32_t bitfield_bit_size, uint32_t bitfield_bit_offset, bool is_base_class, bool is_deref_of_parent, lldb::addr_t live_address, uint64_t language_flags)
lldb::ValueObjectSP DoCast(const CompilerType &compiler_type) override
lldb::ValueObjectSP AddressOf(Status &error) override
lldb::ValueObjectSP Dereference(Status &error) override
CompilerType GetCompilerType()
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
uint64_t addr_t
Definition lldb-types.h:80