LLDB
mainline
llvm-project
lldb
include
lldb
API
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
14
namespace
lldb
{
15
16
class
LLDB_API
SBThreadCollection
{
17
public
:
18
SBThreadCollection
();
19
20
SBThreadCollection
(
const
SBThreadCollection
&rhs);
21
22
const
SBThreadCollection
&operator=(
const
SBThreadCollection
&rhs);
23
24
~SBThreadCollection
();
25
26
explicit
operator
bool()
const
;
27
28
bool
IsValid()
const
;
29
30
size_t
GetSize();
31
32
lldb::SBThread
GetThreadAtIndex(
size_t
idx);
33
34
protected
:
35
// Mimic shared pointer...
36
lldb_private::ThreadCollection
*get()
const
;
37
38
lldb_private::ThreadCollection
*operator->()
const
;
39
40
lldb::ThreadCollectionSP
&operator*();
41
42
const
lldb::ThreadCollectionSP
&operator*()
const
;
43
44
SBThreadCollection
(
const
lldb::ThreadCollectionSP
&threads);
45
46
void
SetOpaque(
const
lldb::ThreadCollectionSP
&threads);
47
48
private
:
49
friend
class
SBProcess
;
50
friend
class
SBThread
;
51
52
lldb::ThreadCollectionSP
m_opaque_sp
;
53
};
54
55
}
// namespace lldb
56
57
#endif
// LLDB_API_SBTHREADCOLLECTION_H
SBDefines.h
LLDB_API
#define LLDB_API
Definition:
SBDefines.h:28
lldb::SBProcess
Definition:
SBProcess.h:29
lldb::SBThreadCollection
Definition:
SBThreadCollection.h:16
lldb::SBThreadCollection::m_opaque_sp
lldb::ThreadCollectionSP m_opaque_sp
Definition:
SBThreadCollection.h:52
lldb::SBThreadCollection::~SBThreadCollection
~SBThreadCollection()
lldb::SBThread
Definition:
SBThread.h:26
lldb_private::ThreadCollection
Definition:
ThreadCollection.h:20
lldb
Definition:
SBAddress.h:15
lldb::ThreadCollectionSP
std::shared_ptr< lldb_private::ThreadCollection > ThreadCollectionSP
Definition:
lldb-forward.h:448
Generated on Fri Dec 6 2024 16:44:16 for LLDB by
1.9.6