Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:41

0001 //===-- SBAddressRangeList.h ------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_API_SBADDRESSRANGELIST_H
0010 #define LLDB_API_SBADDRESSRANGELIST_H
0011 
0012 #include <memory>
0013 
0014 #include "lldb/API/SBDefines.h"
0015 
0016 namespace lldb_private {
0017 class AddressRangeListImpl;
0018 }
0019 
0020 namespace lldb {
0021 
0022 class LLDB_API SBAddressRangeList {
0023 public:
0024   SBAddressRangeList();
0025 
0026   SBAddressRangeList(const lldb::SBAddressRangeList &rhs);
0027 
0028   ~SBAddressRangeList();
0029 
0030   const lldb::SBAddressRangeList &
0031   operator=(const lldb::SBAddressRangeList &rhs);
0032 
0033   uint32_t GetSize() const;
0034 
0035   void Clear();
0036 
0037   SBAddressRange GetAddressRangeAtIndex(uint64_t idx);
0038 
0039   void Append(const lldb::SBAddressRange &addr_range);
0040 
0041   void Append(const lldb::SBAddressRangeList &addr_range_list);
0042 
0043   bool GetDescription(lldb::SBStream &description, const SBTarget &target);
0044 
0045 private:
0046   friend class SBBlock;
0047   friend class SBProcess;
0048   friend class SBFunction;
0049 
0050   lldb_private::AddressRangeListImpl &ref() const;
0051 
0052   std::unique_ptr<lldb_private::AddressRangeListImpl> m_opaque_up;
0053 };
0054 
0055 } // namespace lldb
0056 
0057 #endif // LLDB_API_SBADDRESSRANGELIST_H