1 //===-- SBMemoryRegionInfoList.h --------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SBMemoryRegionInfoList_h_
10 #define LLDB_SBMemoryRegionInfoList_h_
12 #include "lldb/API/SBDefines.h"
14 class MemoryRegionInfoListImpl;
18 class LLDB_API SBMemoryRegionInfoList {
20 SBMemoryRegionInfoList();
22 SBMemoryRegionInfoList(const lldb::SBMemoryRegionInfoList &rhs);
24 const SBMemoryRegionInfoList &operator=(const SBMemoryRegionInfoList &rhs);
26 ~SBMemoryRegionInfoList();
28 uint32_t GetSize() const;
30 bool GetMemoryRegionAtIndex(uint32_t idx, SBMemoryRegionInfo ®ion_info);
32 void Append(lldb::SBMemoryRegionInfo ®ion);
34 void Append(lldb::SBMemoryRegionInfoList ®ion_list);
39 const MemoryRegionInfoListImpl *operator->() const;
41 const MemoryRegionInfoListImpl &operator*() const;
44 friend class SBProcess;
46 lldb_private::MemoryRegionInfos &ref();
48 const lldb_private::MemoryRegionInfos &ref() const;
50 std::unique_ptr<MemoryRegionInfoListImpl> m_opaque_up;
55 #endif // LLDB_SBMemoryRegionInfoList_h_