Panda3D
Public Member Functions | List of all members
VirtualFileList Class Reference

A list of VirtualFiles, as returned by VirtualFile::scan_directory(). More...

Inheritance diagram for VirtualFileList:
ReferenceCount MemoryBase

Public Member Functions

VirtualFile getFile (int n)
 Returns the nth file in the list. More...
 
list getFiles ()
 
int getNumFiles ()
 Returns the number of files in the list. More...
 
VirtualFileList operator+ (const VirtualFileList other)
 
VirtualFileList operator+= (const VirtualFileList other)
 
VirtualFile operator[] (int n)
 Returns the nth file in the list. More...
 
int size ()
 Returns the number of files in the list. More...
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
 
bool unref ()
 Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Detailed Description

A list of VirtualFiles, as returned by VirtualFile::scan_directory().

Member Function Documentation

◆ getFile()

VirtualFile getFile ( int  n)

Returns the nth file in the list.

◆ getFiles()

list getFiles ( )

◆ getNumFiles()

int getNumFiles ( )

Returns the number of files in the list.

◆ operator+()

VirtualFileList operator+ ( const VirtualFileList  other)

◆ operator+=()

VirtualFileList operator+= ( const VirtualFileList  other)

◆ operator[]()

VirtualFile operator[] ( int  n)

Returns the nth file in the list.

◆ size()

int size ( )

Returns the number of files in the list.