17 INLINE VirtualFileList::
24 INLINE VirtualFileList::
33 _files.push_back(file);
39 INLINE
size_t VirtualFileList::
40 get_num_files()
const {
49 nassertr(n < _files.size(),
nullptr);
58 nassertr(n < _files.size(),
nullptr);
75 _files.insert(_files.end(), other._files.begin(), other._files.end());
size_t size() const
Returns the number of files in the list.
VirtualFile * operator [](size_t n) const
Returns the nth file in the list.
void operator+=(const VirtualFileList &other)
Appends the other list onto the end of this one.
VirtualFileList operator+(const VirtualFileList &other) const
Returns a VirtualFileList representing the concatenation of the two lists.
The abstract base class for a file or directory within the VirtualFileSystem.
A list of VirtualFiles, as returned by VirtualFile::scan_directory().
get_file
Returns the nth file in the list.
void add_file(VirtualFile *file)
Adds a new file to the list.