Panda3D
Public Member Functions | List of all members
DSearchPath::Results Class Reference

Public Member Functions

 Results (const Results &copy)
 
void add_file (const Filename &file)
 Adds a new file to the result list. More...
 
void clear ()
 Removes all the files from the list. More...
 
const Filenameget_file (int n) const
 Returns the nth file on the result list. More...
 
int get_num_files () const
 Returns the number of files on the result list. More...
 
void operator= (const Results &copy)
 
Filename operator[] (int n) const
 Returns the nth filename in the set. More...
 
void output (ostream &out) const
 
int size () const
 Returns the num of filenames in the set. More...
 
void write (ostream &out, int indent_level=0) const
 

Detailed Description

Definition at line 34 of file dSearchPath.h.

Member Function Documentation

◆ add_file()

void DSearchPath::Results::add_file ( const Filename file)

Adds a new file to the result list.

Definition at line 97 of file dSearchPath.cxx.

References DSearchPath::DSearchPath().

Referenced by DSearchPath::find_all_files(), VirtualFileSystem::find_all_files(), and get_file().

◆ clear()

void DSearchPath::Results::clear ( )

Removes all the files from the list.

Definition at line 66 of file dSearchPath.cxx.

References get_num_files().

◆ get_file()

const Filename & DSearchPath::Results::get_file ( int  n) const

Returns the nth file on the result list.

Definition at line 86 of file dSearchPath.cxx.

References add_file().

Referenced by get_num_files(), and operator[]().

◆ get_num_files()

int DSearchPath::Results::get_num_files ( ) const

Returns the number of files on the result list.

Definition at line 76 of file dSearchPath.cxx.

References get_file().

Referenced by clear(), and size().

◆ operator[]()

Filename DSearchPath::Results::operator[] ( int  n) const
inline

Returns the nth filename in the set.

This method is defined to make the Results object appear to be a list in Python.

Definition at line 24 of file dSearchPath.I.

References get_file(), and size().

◆ size()

int DSearchPath::Results::size ( ) const
inline

Returns the num of filenames in the set.

This method is defined to make the Results object appear to be a list in Python.

Definition at line 36 of file dSearchPath.I.

References DSearchPath::find_all_files(), and get_num_files().

Referenced by operator[]().


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