Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ModelPool Class Reference

#include <modelPool.h>

List of all members.

Private Types

typedef pmap< string, PT(PandaNodeModels )

Private Member Functions

INLINE ModelPool ()
bool ns_has_model (const string &filename)
PandaNodens_load_model (const string &filename)
void ns_add_model (const string &filename, PandaNode *model)
void ns_release_model (const string &filename)
void ns_release_all_models ()
int ns_garbage_collect ()
void ns_list_contents (ostream &out)

Static Private Member Functions

INLINE bool verify_model (const string &filename)
INLINE PandaNodeload_model (const string &filename)
INLINE void add_model (const string &filename, PandaNode *model)
INLINE void release_model (const string &filename)
INLINE void release_all_models ()
INLINE int garbage_collect ()
INLINE void list_contents (ostream &out)
ModelPool * get_ptr ()

Private Attributes

PUBLISHED __pad0__: INLINE static bool has_model(const string &filename)
Models _models

Static Private Attributes

ModelPool * _global_ptr = (ModelPool *)NULL


Member Typedef Documentation

typedef pmap<string, PT(PandaNode) ModelPool::Models) [private]
 

Definition at line 77 of file modelPool.h.

Referenced by ns_garbage_collect().


Constructor & Destructor Documentation

INLINE ModelPool::ModelPool  )  [private]
 


Member Function Documentation

INLINE void ModelPool::add_model const string &  filename,
PandaNode model
[static, private]
 

INLINE int ModelPool::garbage_collect  )  [static, private]
 

ModelPool * ModelPool::get_ptr  )  [static, private]
 

Definition at line 156 of file modelPool.cxx.

References _global_ptr, and NULL.

INLINE void ModelPool::list_contents ostream &  out  )  [static, private]
 

INLINE PandaNode* ModelPool::load_model const string &  filename  )  [static, private]
 

void ModelPool::ns_add_model const string &  filename,
PandaNode model
[private]
 

Definition at line 77 of file modelPool.cxx.

References _models.

int ModelPool::ns_garbage_collect  )  [private]
 

Definition at line 112 of file modelPool.cxx.

References _models, and Models.

bool ModelPool::ns_has_model const string &  filename  )  [private]
 

Definition at line 34 of file modelPool.cxx.

References _models.

void ModelPool::ns_list_contents ostream &  out  )  [private]
 

Definition at line 140 of file modelPool.cxx.

References _models.

PandaNode * ModelPool::ns_load_model const string &  filename  )  [private]
 

Definition at line 51 of file modelPool.cxx.

References _models, model_loader, NULL, and PT.

void ModelPool::ns_release_all_models  )  [private]
 

Definition at line 102 of file modelPool.cxx.

References _models.

void ModelPool::ns_release_model const string &  filename  )  [private]
 

Definition at line 88 of file modelPool.cxx.

References _models.

INLINE void ModelPool::release_all_models  )  [static, private]
 

INLINE void ModelPool::release_model const string &  filename  )  [static, private]
 

INLINE bool ModelPool::verify_model const string &  filename  )  [static, private]
 


Member Data Documentation

PUBLISHED ModelPool::__pad0__ [private]
 

Definition at line 51 of file modelPool.h.

ModelPool * ModelPool::_global_ptr = (ModelPool *)NULL [static, private]
 

Definition at line 24 of file modelPool.cxx.

Referenced by get_ptr().

Models ModelPool::_models [private]
 

Definition at line 78 of file modelPool.h.

Referenced by ns_add_model(), ns_garbage_collect(), ns_has_model(), ns_list_contents(), ns_load_model(), ns_release_all_models(), and ns_release_model().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:45 2003 for Panda by doxygen1.3