LLDB
mainline
llvm-project
lldb
include
lldb
API
SBFileSpecList.h
Go to the documentation of this file.
1
//===-- SBFileSpecList.h --------------------------------------------*- C++
2
//-*-===//
3
//
4
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
// See https://llvm.org/LICENSE.txt for license information.
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
//
8
//===----------------------------------------------------------------------===//
9
10
#ifndef LLDB_API_SBFILESPECLIST_H
11
#define LLDB_API_SBFILESPECLIST_H
12
13
#include "
lldb/API/SBDefines.h
"
14
15
namespace
lldb
{
16
17
class
LLDB_API
SBFileSpecList
{
18
public
:
19
SBFileSpecList
();
20
21
SBFileSpecList
(
const
lldb::SBFileSpecList
&rhs);
22
23
~SBFileSpecList
();
24
25
const
SBFileSpecList
&operator=(
const
lldb::SBFileSpecList
&rhs);
26
27
uint32_t GetSize()
const
;
28
29
bool
GetDescription(
SBStream
&description)
const
;
30
31
void
Append(
const
SBFileSpec
&sb_file);
32
33
bool
AppendIfUnique(
const
SBFileSpec
&sb_file);
34
35
void
Clear();
36
37
uint32_t
FindFileIndex
(uint32_t idx,
const
SBFileSpec
&sb_file,
bool
full);
38
39
const
SBFileSpec
GetFileSpecAtIndex(uint32_t idx)
const
;
40
41
private
:
42
friend
class
SBTarget
;
43
44
const
lldb_private::FileSpecList
*operator->()
const
;
45
46
const
lldb_private::FileSpecList
*get()
const
;
47
48
const
lldb_private::FileSpecList
&operator*()
const
;
49
50
const
lldb_private::FileSpecList
&ref()
const
;
51
52
std::unique_ptr<lldb_private::FileSpecList>
m_opaque_up
;
53
};
54
55
}
// namespace lldb
56
57
#endif
// LLDB_API_SBFILESPECLIST_H
FindFileIndex
static size_t FindFileIndex(size_t start_idx, const FileSpec &file_spec, bool full, size_t num_files, std::function< const FileSpec &(size_t)> get_ith)
Definition:
FileSpecList.cpp:76
SBDefines.h
LLDB_API
#define LLDB_API
Definition:
SBDefines.h:28
lldb::SBFileSpecList
Definition:
SBFileSpecList.h:17
lldb::SBFileSpecList::~SBFileSpecList
~SBFileSpecList()
lldb::SBFileSpecList::m_opaque_up
std::unique_ptr< lldb_private::FileSpecList > m_opaque_up
Definition:
SBFileSpecList.h:52
lldb::SBFileSpec
Definition:
SBFileSpec.h:16
lldb::SBStream
Definition:
SBStream.h:22
lldb::SBTarget
Definition:
SBTarget.h:37
lldb_private::FileSpecList
A file collection class.
Definition:
FileSpecList.h:91
lldb
Definition:
SBAddress.h:15
Generated on Sun Oct 13 2024 11:30:35 for LLDB by
1.9.6