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 | |
14 | class MemoryRegionInfoListImpl; |
15 | |
16 | namespace lldb { |
17 | |
18 | class LLDB_API SBMemoryRegionInfoList { |
19 | public: |
20 | SBMemoryRegionInfoList(); |
21 | |
22 | SBMemoryRegionInfoList(const lldb::SBMemoryRegionInfoList &rhs); |
23 | |
24 | const SBMemoryRegionInfoList &operator=(const SBMemoryRegionInfoList &rhs); |
25 | |
26 | ~SBMemoryRegionInfoList(); |
27 | |
28 | uint32_t GetSize() const; |
29 | |
30 | bool GetMemoryRegionContainingAddress(lldb::addr_t addr, |
31 | SBMemoryRegionInfo ®ion_info); |
32 | |
33 | bool GetMemoryRegionAtIndex(uint32_t idx, SBMemoryRegionInfo ®ion_info); |
34 | |
35 | void Append(lldb::SBMemoryRegionInfo ®ion); |
36 | |
37 | void Append(lldb::SBMemoryRegionInfoList ®ion_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 | |
49 | lldb_private::MemoryRegionInfos &ref(); |
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 |
59 |