21 INLINE VirtualFileList::
30 INLINE VirtualFileList::
41 _files.push_back(file);
61 nassertr(n >= 0 && n < (
int)_files.size(), NULL);
72 nassertr(n >= 0 && n < (
int)_files.size(), NULL);
93 _files.insert(_files.end(), other._files.begin(), other._files.end());
VirtualFile * get_file(int n) const
Returns the nth file in the list.
VirtualFile * operator[](int n) const
Returns the nth file in the list.
int get_num_files() const
Returns the number of files in the list.
void operator+=(const VirtualFileList &other)
Appends the other list onto the end of this one.
The abstract base class for a file or directory within the VirtualFileSystem.
VirtualFileList operator+(const VirtualFileList &other) const
Returns a VirtualFileList representing the concatenation of the two lists.
A list of VirtualFiles, as returned by VirtualFile::scan_directory().
int size() const
Returns the number of files in the list.
void add_file(VirtualFile *file)
Adds a new file to the list.