Panda3D
|
A list of VirtualFiles, as returned by VirtualFile::scan_directory(). More...
#include "virtualFileList.h"
Public Member Functions | |
void | add_file (VirtualFile *file) |
Adds a new file to the list. | |
VirtualFile * | get_file (int n) const |
Returns the nth file in the list. | |
int | get_num_files () const |
Returns the number of files in the list. | |
MAKE_SEQ (get_files, get_num_files, get_file) | |
VirtualFileList | operator+ (const VirtualFileList &other) const |
Returns a VirtualFileList representing the concatenation of the two lists. | |
void | operator+= (const VirtualFileList &other) |
Appends the other list onto the end of this one. | |
VirtualFile * | operator[] (int n) const |
Returns the nth file in the list. | |
int | size () const |
Returns the number of files in the list. |
A list of VirtualFiles, as returned by VirtualFile::scan_directory().
Definition at line 28 of file virtualFileList.h.
void VirtualFileList::add_file | ( | VirtualFile * | file | ) | [inline] |
Adds a new file to the list.
Definition at line 40 of file virtualFileList.I.
Referenced by VirtualFileSimple::scan_local_directory().
VirtualFile * VirtualFileList::get_file | ( | int | n | ) | const [inline] |
Returns the nth file in the list.
Definition at line 60 of file virtualFileList.I.
int VirtualFileList::get_num_files | ( | ) | const [inline] |
Returns the number of files in the list.
Definition at line 50 of file virtualFileList.I.
VirtualFileList VirtualFileList::operator+ | ( | const VirtualFileList & | other | ) | const [inline] |
Returns a VirtualFileList representing the concatenation of the two lists.
Definition at line 103 of file virtualFileList.I.
void VirtualFileList::operator+= | ( | const VirtualFileList & | other | ) | [inline] |
Appends the other list onto the end of this one.
Definition at line 92 of file virtualFileList.I.
VirtualFile * VirtualFileList::operator[] | ( | int | n | ) | const [inline] |
Returns the nth file in the list.
Definition at line 71 of file virtualFileList.I.
int VirtualFileList::size | ( | ) | const [inline] |
Returns the number of files in the list.
Definition at line 82 of file virtualFileList.I.