]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Core/ValueObjectConstResultCast.h
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / include / lldb / Core / ValueObjectConstResultCast.h
1 //===-- ValueObjectConstResultCast.h ----------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef liblldb_ValueObjectConstResultCast_h_
11 #define liblldb_ValueObjectConstResultCast_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Core/ValueObjectCast.h"
18 #include "lldb/Core/ValueObjectConstResultImpl.h"
19
20 namespace lldb_private {
21
22 class ValueObjectConstResultCast : public ValueObjectCast {
23 public:
24   ValueObjectConstResultCast(ValueObject &parent, const ConstString &name,
25                              const CompilerType &cast_type,
26                              lldb::addr_t live_address = LLDB_INVALID_ADDRESS);
27
28   ~ValueObjectConstResultCast() override;
29
30   lldb::ValueObjectSP Dereference(Error &error) override;
31
32   ValueObject *CreateChildAtIndex(size_t idx, bool synthetic_array_member,
33                                   int32_t synthetic_index) override;
34
35   virtual CompilerType GetCompilerType() {
36     return ValueObjectCast::GetCompilerType();
37   }
38
39   lldb::ValueObjectSP GetSyntheticChildAtOffset(
40       uint32_t offset, const CompilerType &type, bool can_create,
41       ConstString name_const_str = ConstString()) override;
42
43   lldb::ValueObjectSP AddressOf(Error &error) override;
44
45   size_t GetPointeeData(DataExtractor &data, uint32_t item_idx = 0,
46                         uint32_t item_count = 1) override;
47
48   lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
49
50 protected:
51   ValueObjectConstResultImpl m_impl;
52
53 private:
54   friend class ValueObject;
55   friend class ValueObjectConstResult;
56   friend class ValueObjectConstResultImpl;
57
58   DISALLOW_COPY_AND_ASSIGN(ValueObjectConstResultCast);
59 };
60
61 } // namespace lldb_private
62
63 #endif // liblldb_ValueObjectConstResultCast_h_