1 //===-- SBFileSpecList.h --------------------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef LLDB_SBFileSpecList_h_
12 #define LLDB_SBFileSpecList_h_
14 #include "lldb/API/SBDefines.h"
18 class LLDB_API SBFileSpecList {
22 SBFileSpecList(const lldb::SBFileSpecList &rhs);
26 const SBFileSpecList &operator=(const lldb::SBFileSpecList &rhs);
28 uint32_t GetSize() const;
30 bool GetDescription(SBStream &description) const;
32 void Append(const SBFileSpec &sb_file);
34 bool AppendIfUnique(const SBFileSpec &sb_file);
38 uint32_t FindFileIndex(uint32_t idx, const SBFileSpec &sb_file, bool full);
40 const SBFileSpec GetFileSpecAtIndex(uint32_t idx) const;
43 friend class SBTarget;
45 const lldb_private::FileSpecList *operator->() const;
47 const lldb_private::FileSpecList *get() const;
49 const lldb_private::FileSpecList &operator*() const;
51 const lldb_private::FileSpecList &ref() const;
53 std::unique_ptr<lldb_private::FileSpecList> m_opaque_ap;
58 #endif // LLDB_SBFileSpecList_h_