LLDB mainline
SBSymbolContextList.h
Go to the documentation of this file.
1//===-- SBSymbolContextList.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_SBSYMBOLCONTEXTLIST_H
10#define LLDB_API_SBSYMBOLCONTEXTLIST_H
11
12#include "lldb/API/SBDefines.h"
14
15namespace lldb {
16
18public:
20
22
24
26 operator=(const lldb::SBSymbolContextList &rhs);
27
28 explicit operator bool() const;
29
30 bool IsValid() const;
31
32 uint32_t GetSize() const;
33
34 lldb::SBSymbolContext GetContextAtIndex(uint32_t idx);
35
36 bool GetDescription(lldb::SBStream &description);
37
38 void Append(lldb::SBSymbolContext &sc);
39
40 void Append(lldb::SBSymbolContextList &sc_list);
41
42 void Clear();
43
44protected:
45 friend class SBModule;
46 friend class SBTarget;
47
48 lldb_private::SymbolContextList *operator->() const;
49
50 lldb_private::SymbolContextList &operator*() const;
51
52private:
53 std::unique_ptr<lldb_private::SymbolContextList> m_opaque_up;
54};
55
56} // namespace lldb
57
58#endif // LLDB_API_SBSYMBOLCONTEXTLIST_H
#define LLDB_API
Definition: SBDefines.h:28
std::unique_ptr< lldb_private::SymbolContextList > m_opaque_up
Defines a list of symbol context objects.
Definition: SBAddress.h:15