1 //===-- SBLineEntry.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_SBLineEntry_h_
10 #define LLDB_SBLineEntry_h_
12 #include "lldb/API/SBAddress.h"
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBFileSpec.h"
18 class LLDB_API SBLineEntry {
22 SBLineEntry(const lldb::SBLineEntry &rhs);
26 const lldb::SBLineEntry &operator=(const lldb::SBLineEntry &rhs);
28 lldb::SBAddress GetStartAddress() const;
30 lldb::SBAddress GetEndAddress() const;
32 explicit operator bool() const;
36 lldb::SBFileSpec GetFileSpec() const;
38 uint32_t GetLine() const;
40 uint32_t GetColumn() const;
42 void SetFileSpec(lldb::SBFileSpec filespec);
44 void SetLine(uint32_t line);
46 void SetColumn(uint32_t column);
48 bool operator==(const lldb::SBLineEntry &rhs) const;
50 bool operator!=(const lldb::SBLineEntry &rhs) const;
52 bool GetDescription(lldb::SBStream &description);
55 lldb_private::LineEntry *get();
58 friend class SBAddress;
59 friend class SBCompileUnit;
61 friend class SBSymbolContext;
63 const lldb_private::LineEntry *operator->() const;
65 lldb_private::LineEntry &ref();
67 const lldb_private::LineEntry &ref() const;
69 SBLineEntry(const lldb_private::LineEntry *lldb_object_ptr);
71 void SetLineEntry(const lldb_private::LineEntry &lldb_object_ref);
73 std::unique_ptr<lldb_private::LineEntry> m_opaque_up;
78 #endif // LLDB_SBLineEntry_h_