LLDB  mainline
SBMemoryRegionInfoList.h
Go to the documentation of this file.
1 //===-- SBMemoryRegionInfoList.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_API_SBMEMORYREGIONINFOLIST_H
10 #define LLDB_API_SBMEMORYREGIONINFOLIST_H
11 
12 #include "lldb/API/SBDefines.h"
13 
15 
16 namespace lldb {
17 
19 public:
21 
23 
24  const SBMemoryRegionInfoList &operator=(const SBMemoryRegionInfoList &rhs);
25 
27 
28  uint32_t GetSize() const;
29 
30  bool GetMemoryRegionContainingAddress(lldb::addr_t addr,
31  SBMemoryRegionInfo &region_info);
32 
33  bool GetMemoryRegionAtIndex(uint32_t idx, SBMemoryRegionInfo &region_info);
34 
35  void Append(lldb::SBMemoryRegionInfo &region);
36 
37  void Append(lldb::SBMemoryRegionInfoList &region_list);
38 
39  void Clear();
40 
41 protected:
42  const MemoryRegionInfoListImpl *operator->() const;
43 
44  const MemoryRegionInfoListImpl &operator*() const;
45 
46 private:
47  friend class SBProcess;
48 
50 
51  const lldb_private::MemoryRegionInfos &ref() const;
52 
53  std::unique_ptr<MemoryRegionInfoListImpl> m_opaque_up;
54 };
55 
56 } // namespace lldb
57 
58 #endif // LLDB_API_SBMEMORYREGIONINFOLIST_H
SBDefines.h
lldb::SBMemoryRegionInfoList
class LLDB_API SBMemoryRegionInfoList
Definition: SBDefines.h:58
LLDB_API
#define LLDB_API
Definition: lldb-defines.h:23
lldb::SBProcess
Definition: SBProcess.h:23
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
lldb::SBMemoryRegionInfoList::m_opaque_up
std::unique_ptr< MemoryRegionInfoListImpl > m_opaque_up
Definition: SBMemoryRegionInfoList.h:53
lldb::SBMemoryRegionInfoList
Definition: SBMemoryRegionInfoList.h:18
MemoryRegionInfoListImpl
Definition: SBMemoryRegionInfoList.cpp:20
lldb_private::MemoryRegionInfos
Definition: MemoryRegionInfo.h:164
uint32_t
lldb::SBMemoryRegionInfo
Definition: SBMemoryRegionInfo.h:17
lldb_private::operator*
const Scalar operator*(Scalar lhs, Scalar rhs)
Definition: Scalar.cpp:556
lldb
Definition: SBAddress.h:15