]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/API/SBMemoryRegionInfoList.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / API / SBMemoryRegionInfoList.h
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_SBMemoryRegionInfoList_h_
10 #define LLDB_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 GetMemoryRegionAtIndex(uint32_t idx, SBMemoryRegionInfo &region_info);
31
32   void Append(lldb::SBMemoryRegionInfo &region);
33
34   void Append(lldb::SBMemoryRegionInfoList &region_list);
35
36   void Clear();
37
38 protected:
39   const MemoryRegionInfoListImpl *operator->() const;
40
41   const MemoryRegionInfoListImpl &operator*() const;
42
43 private:
44   friend class SBProcess;
45
46   lldb_private::MemoryRegionInfos &ref();
47
48   const lldb_private::MemoryRegionInfos &ref() const;
49
50   std::unique_ptr<MemoryRegionInfoListImpl> m_opaque_up;
51 };
52
53 } // namespace lldb
54
55 #endif // LLDB_SBMemoryRegionInfoList_h_