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

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

#include "virtualFileList.h"

Inheritance diagram for VirtualFileList:
ReferenceCount MemoryBase

Public Member Functions

void add_file (VirtualFile *file)
 Adds a new file to the list. More...
 
VirtualFileget_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...
 
VirtualFileoperator[] (int n) const
 Returns the nth file in the list. More...
 
int size () const
 Returns the number of files in the list. More...
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 Returns the current reference count. More...
 
WeakReferenceListget_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 Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 

Detailed Description

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

Definition at line 28 of file virtualFileList.h.

Member Function Documentation

◆ add_file()

void VirtualFileList::add_file ( VirtualFile file)
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().

◆ get_file()

VirtualFile * VirtualFileList::get_file ( int  n) const
inline

Returns the nth file in the list.

Definition at line 60 of file virtualFileList.I.

References operator[]().

Referenced by get_num_files().

◆ get_num_files()

int VirtualFileList::get_num_files ( ) const
inline

Returns the number of files in the list.

Definition at line 50 of file virtualFileList.I.

References get_file().

Referenced by add_file().

◆ operator+()

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.

Referenced by operator+=().

◆ operator+=()

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.

References operator+().

Referenced by size().

◆ operator[]()

VirtualFile * VirtualFileList::operator[] ( int  n) const
inline

Returns the nth file in the list.

Definition at line 71 of file virtualFileList.I.

References size().

Referenced by get_file().

◆ size()

int VirtualFileList::size ( ) const
inline

Returns the number of files in the list.

Definition at line 82 of file virtualFileList.I.

References operator+=().

Referenced by operator[]().


The documentation for this class was generated from the following files: