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
16namespace lldb {
17
19public:
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
41protected:
42 const MemoryRegionInfoListImpl *operator->() const;
43
44 const MemoryRegionInfoListImpl &operator*() const;
45
46private:
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
#define LLDB_API
Definition: SBDefines.h:28
std::unique_ptr< MemoryRegionInfoListImpl > m_opaque_up
Definition: SBAddress.h:15
uint64_t addr_t
Definition: lldb-types.h:80