1 //===-- ValueObjectConstResultCast.h ----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ValueObjectConstResultCast_h_
11 #define liblldb_ValueObjectConstResultCast_h_
15 // Other libraries and framework includes
17 #include "lldb/Core/ValueObjectCast.h"
18 #include "lldb/Core/ValueObjectConstResultImpl.h"
20 namespace lldb_private {
22 class ValueObjectConstResultCast : public ValueObjectCast
25 ValueObjectConstResultCast (
27 const ConstString &name,
28 const CompilerType &cast_type,
29 lldb::addr_t live_address = LLDB_INVALID_ADDRESS);
31 ~ValueObjectConstResultCast() override;
34 Dereference(Error &error) override;
37 CreateChildAtIndex(size_t idx,
38 bool synthetic_array_member,
39 int32_t synthetic_index) override;
44 return ValueObjectCast::GetCompilerType();
48 GetSyntheticChildAtOffset(uint32_t offset,
49 const CompilerType& type,
51 ConstString name_const_str = ConstString()) override;
54 AddressOf (Error &error) override;
57 GetPointeeData (DataExtractor& data,
58 uint32_t item_idx = 0,
59 uint32_t item_count = 1) override;
62 Cast (const CompilerType &compiler_type) override;
65 ValueObjectConstResultImpl m_impl;
68 friend class ValueObject;
69 friend class ValueObjectConstResult;
70 friend class ValueObjectConstResultImpl;
72 DISALLOW_COPY_AND_ASSIGN (ValueObjectConstResultCast);
75 } // namespace lldb_private
77 #endif // liblldb_ValueObjectConstResultCast_h_