9#ifndef LLDB_CORE_FILESPECLIST_H
10#define LLDB_CORE_FILESPECLIST_H
86 m_files.emplace_back(std::forward<Args>(args)...);
96 void Dump(
Stream *s,
const char *separator_cstr =
"\n")
const;
193 }
else if (idx ==
m_files.size()) {
A command line argument class.
std::vector< FileSpec > collection
const_iterator begin() const
const_iterator end() const
static size_t GetFilesMatchingPartialPath(const char *path, bool dir_okay, FileSpecList &matches)
bool Insert(size_t idx, const FileSpec &file)
const FileSpec & GetFileSpecAtIndex(size_t idx) const
Get file at index.
size_t FindCompatibleIndex(size_t idx, const FileSpec &file) const
Find a compatible file index.
void EmplaceBack(Args &&...args)
Inserts a new FileSpec into the FileSpecList constructed in-place with the given arguments.
const FileSpec * GetFileSpecPointerAtIndex(size_t idx) const
Get file specification pointer at index.
void Clear()
Clears the file list.
FileSpecList()
Default constructor.
void Append(const FileSpec &file)
Append a FileSpec object to the list.
size_t GetSize() const
Get the number of files in the file list.
size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const
Find a file index.
FileSpecList & operator=(FileSpecList &&rhs)=default
Move-assignment operator.
bool Replace(size_t idx, const FileSpec &file)
size_t MemorySize() const
Get the memory cost of this object.
bool AppendIfUnique(const FileSpec &file)
Append a FileSpec object if unique.
FileSpecList(const FileSpecList &rhs)=default
Copy constructor.
FileSpecList(std::vector< FileSpec > &&rhs)
Initialize this object from a vector of FileSpecs.
void Dump(Stream *s, const char *separator_cstr="\n") const
Dumps the file list to the supplied stream pointer "s".
FileSpecList(FileSpecList &&rhs)=default
Move constructor.
~FileSpecList()
Destructor.
collection m_files
A collection of FileSpec objects.
collection::const_iterator const_iterator
FileSpecList & operator=(const FileSpecList &rhs)=default
Assignment operator.
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.