mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
9298065cef
CPR has features disabled and PCRE is fully disabled until updated to new code.
61 lines
1.1 KiB
C++
61 lines
1.1 KiB
C++
#include "cpr/file.h"
|
|
|
|
namespace cpr {
|
|
|
|
Files::Files(const std::initializer_list<std::string>& p_filepaths) {
|
|
for (const std::string& filepath : p_filepaths) {
|
|
files.emplace_back(filepath);
|
|
}
|
|
}
|
|
|
|
Files::iterator Files::begin() {
|
|
return files.begin();
|
|
}
|
|
|
|
Files::iterator Files::end() {
|
|
return files.end();
|
|
}
|
|
|
|
Files::const_iterator Files::begin() const {
|
|
return files.begin();
|
|
}
|
|
|
|
Files::const_iterator Files::end() const {
|
|
return files.end();
|
|
}
|
|
|
|
Files::const_iterator Files::cbegin() const {
|
|
return files.cbegin();
|
|
}
|
|
|
|
Files::const_iterator Files::cend() const {
|
|
return files.cend();
|
|
}
|
|
|
|
void Files::emplace_back(const File& file) {
|
|
files.emplace_back(file);
|
|
}
|
|
|
|
void Files::push_back(const File& file) {
|
|
files.push_back(file);
|
|
}
|
|
|
|
void Files::pop_back() {
|
|
files.pop_back();
|
|
}
|
|
|
|
Files& Files::operator=(const Files& other) {
|
|
if (&other != this) {
|
|
files = other.files;
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
Files& Files::operator=(Files&& old) noexcept {
|
|
if (&old != this) {
|
|
files = std::move(old.files);
|
|
}
|
|
return *this;
|
|
}
|
|
} // namespace cpr
|