1 //===-- ValueObjectConstResultChild.h -------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef liblldb_ValueObjectConstResultChild_h_
12 #define liblldb_ValueObjectConstResultChild_h_
16 // Other libraries and framework includes
18 #include "lldb/Core/ValueObjectChild.h"
19 #include "lldb/Core/ValueObjectConstResultImpl.h"
21 namespace lldb_private {
23 //----------------------------------------------------------------------
24 // A child of a ValueObjectConstResult.
25 //----------------------------------------------------------------------
26 class ValueObjectConstResultChild : public ValueObjectChild {
28 ValueObjectConstResultChild(ValueObject &parent,
29 const CompilerType &compiler_type,
30 const ConstString &name, uint32_t byte_size,
31 int32_t byte_offset, uint32_t bitfield_bit_size,
32 uint32_t bitfield_bit_offset, bool is_base_class,
33 bool is_deref_of_parent,
34 lldb::addr_t live_address,
35 uint64_t language_flags);
37 ~ValueObjectConstResultChild() override;
39 lldb::ValueObjectSP Dereference(Error &error) override;
41 ValueObject *CreateChildAtIndex(size_t idx, bool synthetic_array_member,
42 int32_t synthetic_index) override;
44 virtual CompilerType GetCompilerType() {
45 return ValueObjectChild::GetCompilerType();
48 lldb::ValueObjectSP GetSyntheticChildAtOffset(
49 uint32_t offset, const CompilerType &type, bool can_create,
50 ConstString name_const_str = ConstString()) override;
52 lldb::ValueObjectSP AddressOf(Error &error) override;
54 size_t GetPointeeData(DataExtractor &data, uint32_t item_idx = 0,
55 uint32_t item_count = 1) override;
57 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
60 ValueObjectConstResultImpl m_impl;
63 friend class ValueObject;
64 friend class ValueObjectConstResult;
65 friend class ValueObjectConstResultImpl;
67 DISALLOW_COPY_AND_ASSIGN(ValueObjectConstResultChild);
70 } // namespace lldb_private
72 #endif // liblldb_ValueObjectConstResultChild_h_