]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Core/ValueObjectConstResultCast.h
Vendor import of stripped lldb trunk r256633:
[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 {
24 public:
25     ValueObjectConstResultCast (
26         ValueObject &parent,
27         const ConstString &name,
28         const CompilerType &cast_type,
29         lldb::addr_t live_address = LLDB_INVALID_ADDRESS);
30
31     ~ValueObjectConstResultCast() override;
32
33     lldb::ValueObjectSP
34     Dereference(Error &error) override;
35
36     ValueObject *
37     CreateChildAtIndex(size_t idx,
38                        bool synthetic_array_member,
39                        int32_t synthetic_index) override;
40
41     virtual CompilerType
42     GetCompilerType ()
43     {
44         return ValueObjectCast::GetCompilerType();
45     }
46
47     lldb::ValueObjectSP
48     GetSyntheticChildAtOffset(uint32_t offset,
49                               const CompilerType& type,
50                               bool can_create) override;
51
52     lldb::ValueObjectSP
53     AddressOf (Error &error) override;
54
55     size_t
56     GetPointeeData (DataExtractor& data,
57                     uint32_t item_idx = 0,
58                     uint32_t item_count = 1) override;
59
60     lldb::ValueObjectSP
61     Cast (const CompilerType &compiler_type) override;
62
63 protected:
64     ValueObjectConstResultImpl m_impl;
65
66 private:
67     friend class ValueObject;
68     friend class ValueObjectConstResult;
69     friend class ValueObjectConstResultImpl;
70
71     DISALLOW_COPY_AND_ASSIGN (ValueObjectConstResultCast);
72 };
73
74 } // namespace lldb_private
75
76 #endif // liblldb_ValueObjectConstResultCast_h_