LLDB mainline
SBThreadCollection.h
Go to the documentation of this file.
1//===-- SBThreadCollection.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_SBTHREADCOLLECTION_H
10#define LLDB_API_SBTHREADCOLLECTION_H
11
12#include "lldb/API/SBDefines.h"
13
14namespace lldb {
15
17public:
19
21
23
25
26 explicit operator bool() const;
27
28 bool IsValid() const;
29
30 size_t GetSize();
31
33
34protected:
35 // Mimic shared pointer...
37
39
41
43
45
46 void SetOpaque(const lldb::ThreadCollectionSP &threads);
47
48private:
49 friend class SBProcess;
50 friend class SBThread;
51 friend class SBSaveCoreOptions;
53};
54
55} // namespace lldb
56
57#endif // LLDB_API_SBTHREADCOLLECTION_H
#define LLDB_API
Definition SBDefines.h:28
lldb_private::ThreadCollection * get() const
lldb::ThreadCollectionSP m_opaque_sp
lldb::SBThread GetThreadAtIndex(size_t idx)
const SBThreadCollection & operator=(const SBThreadCollection &rhs)
void SetOpaque(const lldb::ThreadCollectionSP &threads)
lldb_private::ThreadCollection * operator->() const
lldb::ThreadCollectionSP & operator*()
std::shared_ptr< lldb_private::ThreadCollection > ThreadCollectionSP