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. More... | |
VirtualFile * | get_file (int n) const |
Returns the nth file in the list. More... | |
int | get_num_files () const |
Returns the number of files in the list. More... | |
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. More... | |
void | operator+= (const VirtualFileList &other) |
Appends the other list onto the end of this one. More... | |
VirtualFile * | operator[] (int n) const |
Returns the nth file in the list. More... | |
int | size () const |
Returns the number of files in the list. More... | |
![]() | |
int | get_ref_count () const |
Returns the current reference count. More... | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. More... | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More... | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More... | |
void | ref () const |
Explicitly increments the reference count. More... | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
virtual bool | unref () const |
Explicitly decrements the reference count. More... | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. More... | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. More... | |
Additional Inherited Members | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
A list of VirtualFiles, as returned by VirtualFile::scan_directory().
Definition at line 28 of file virtualFileList.h.
|
inline |
Adds a new file to the list.
Definition at line 40 of file virtualFileList.I.
References get_num_files().
Referenced by VirtualFileSimple::write_file().
|
inline |
Returns the nth file in the list.
Definition at line 60 of file virtualFileList.I.
References operator[]().
Referenced by get_num_files().
|
inline |
Returns the number of files in the list.
Definition at line 50 of file virtualFileList.I.
References get_file().
Referenced by add_file().
|
inline |
Returns a VirtualFileList representing the concatenation of the two lists.
Definition at line 103 of file virtualFileList.I.
Referenced by operator+=().
|
inline |
Appends the other list onto the end of this one.
Definition at line 92 of file virtualFileList.I.
References operator+().
Referenced by size().
|
inline |
Returns the nth file in the list.
Definition at line 71 of file virtualFileList.I.
References size().
Referenced by get_file().
|
inline |
Returns the number of files in the list.
Definition at line 82 of file virtualFileList.I.
References operator+=().
Referenced by operator[]().