LLDB  mainline
ValueObjectConstResultCast.h
Go to the documentation of this file.
1 //===-- ValueObjectConstResultCast.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_CORE_VALUEOBJECTCONSTRESULTCAST_H
10 #define LLDB_CORE_VALUEOBJECTCONSTRESULTCAST_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 
23 namespace lldb_private {
24 class DataExtractor;
25 class Status;
26 class ValueObject;
27 
29 public:
31  const CompilerType &cast_type,
32  lldb::addr_t live_address = LLDB_INVALID_ADDRESS);
33 
34  ~ValueObjectConstResultCast() override;
35 
36  lldb::ValueObjectSP Dereference(Status &error) override;
37 
38  ValueObject *CreateChildAtIndex(size_t idx, bool synthetic_array_member,
39  int32_t synthetic_index) override;
40 
43  }
44 
45  lldb::ValueObjectSP GetSyntheticChildAtOffset(
46  uint32_t offset, const CompilerType &type, bool can_create,
47  ConstString name_const_str = ConstString()) override;
48 
49  lldb::ValueObjectSP AddressOf(Status &error) override;
50 
51  size_t GetPointeeData(DataExtractor &data, uint32_t item_idx = 0,
52  uint32_t item_count = 1) override;
53 
54  lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
55 
56 protected:
58 
59 private:
60  friend class ValueObject;
61  friend class ValueObjectConstResult;
63 
66  operator=(const ValueObjectConstResultCast &) = delete;
67 };
68 
69 } // namespace lldb_private
70 
71 #endif // LLDB_CORE_VALUEOBJECTCONSTRESULTCAST_H
lldb_private::ValueObjectConstResultCast
Definition: ValueObjectConstResultCast.h:28
lldb-defines.h
lldb_private::ValueObjectConstResultCast::~ValueObjectConstResultCast
~ValueObjectConstResultCast() override
lldb_private::ValueObjectConstResultCast::GetCompilerType
virtual CompilerType GetCompilerType()
Definition: ValueObjectConstResultCast.h:41
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
lldb_private::ValueObjectConstResultCast::Dereference
lldb::ValueObjectSP Dereference(Status &error) override
Definition: ValueObjectConstResultCast.cpp:32
ValueObjectConstResultImpl.h
error
static llvm::raw_ostream & error(Stream &strm)
Definition: CommandReturnObject.cpp:17
lldb_private::DataExtractor
Definition: DataExtractor.h:48
lldb_private::ValueObjectConstResultCast::m_impl
ValueObjectConstResultImpl m_impl
Definition: ValueObjectConstResultCast.h:57
lldb_private::ValueObjectCast
A ValueObject that represents a given value represented as a different type.
Definition: ValueObjectCast.h:25
lldb_private::ValueObjectConstResultCast::ValueObjectConstResultCast
ValueObjectConstResultCast(ValueObject &parent, ConstString name, const CompilerType &cast_type, lldb::addr_t live_address=LLDB_INVALID_ADDRESS)
Definition: ValueObjectConstResultCast.cpp:23
lldb_private::ConstString
Definition: ConstString.h:40
ValueObjectCast.h
CompilerType.h
lldb_private::ValueObjectConstResultCast::GetPointeeData
size_t GetPointeeData(DataExtractor &data, uint32_t item_idx=0, uint32_t item_count=1) override
Definition: ValueObjectConstResultCast.cpp:53
lldb-types.h
lldb_private::Status
Definition: Status.h:44
lldb_private::ValueObject
ValueObject:
Definition: ValueObject.h:105
uint32_t
lldb_private::ValueObjectConstResultCast::Cast
lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override
Definition: ValueObjectConstResultCast.cpp:60
lldb_private::ValueObjectConstResultCast::CreateChildAtIndex
ValueObject * CreateChildAtIndex(size_t idx, bool synthetic_array_member, int32_t synthetic_index) override
Should only be called by ValueObject::GetChildAtIndex().
Definition: ValueObjectConstResultCast.cpp:47
lldb_private::ValueObjectConstResultImpl
A class wrapping common implementation details for operations in ValueObjectConstResult ( & Child ) t...
Definition: ValueObjectConstResultImpl.h:32
lldb_private::ValueObject::GetCompilerType
CompilerType GetCompilerType()
Definition: ValueObject.h:352
lldb_private::ValueObjectConstResult
A frozen ValueObject copied into host memory.
Definition: ValueObjectConstResult.h:33
LLDB_INVALID_ADDRESS
#define LLDB_INVALID_ADDRESS
Definition: lldb-defines.h:86
lldb_private::ValueObjectConstResultCast::operator=
const ValueObjectConstResultCast & operator=(const ValueObjectConstResultCast &)=delete
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:33
lldb-forward.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::ValueObjectConstResultCast::GetSyntheticChildAtOffset
lldb::ValueObjectSP GetSyntheticChildAtOffset(uint32_t offset, const CompilerType &type, bool can_create, ConstString name_const_str=ConstString()) override
Definition: ValueObjectConstResultCast.cpp:36
ConstString.h
lldb_private::LineStatus::Status
@ Status
lldb_private::ValueObjectConstResultCast::AddressOf
lldb::ValueObjectSP AddressOf(Status &error) override
Definition: ValueObjectConstResultCast.cpp:43