Panda3D
|
Keeps a reference-counted pointer to a file on disk. More...
#include "fileReference.h"
Public Member Functions | |
FileReference (const Filename &filename) | |
virtual TypeHandle | force_init_type () |
const Filename & | get_filename () const |
Returns the filename of the reference. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Protected Attributes | |
Filename | _filename |
Keeps a reference-counted pointer to a file on disk.
As long as the FileReference is held, someone presumably has a use for this file.
Definition at line 29 of file fileReference.h.
const Filename & FileReference::get_filename | ( | ) | const [inline] |
Returns the filename of the reference.
Definition at line 31 of file fileReference.I.
Referenced by DatagramSink::get_filename(), and DatagramGenerator::get_filename().
static void FileReference::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TypedReferenceCount.
Reimplemented in TemporaryFile.
Definition at line 41 of file fileReference.h.
References TypedReferenceCount::init_type().
Referenced by TemporaryFile::init_type().