Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::model::ModelManager Class Reference

Inheritance diagram for ONE::model::ModelManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

BaseModelgetModelForName (std::string name)
 ~ModelManager ()

Static Public Member Functions

static void destroyInstance ()
 may be used to manually destroy the singleton instance
static ModelManagergetInstance ()
 accesses the singleton instance
static bool isActive ()
 checks if the singleton is active
static bool isDestroyed ()
 checks if the singleton is destroyed
static bool isVirgin ()
 checks if the singleton has not been initialized

Protected Member Functions

 Singleton ()

Static Protected Member Functions

static void destroyedError ()
static void initInstance ()

Constructor & Destructor Documentation

ONE::model::ModelManager::~ModelManager  ) 
 


Member Function Documentation

static void ONE::util::Automatic< ModelManager >::destroyedError  )  [static, protected, inherited]
 

static void ONE::util::Automatic< ModelManager >::destroyInstance  )  [static, inherited]
 

may be used to manually destroy the singleton instance

If this function is not called, the instance is destroyed automatically during shutdown.

static ModelManager * ONE::util::Singleton< ModelManager , Automatic >::getInstance  )  [static, inherited]
 

accesses the singleton instance

The exact operation executed by calling this function is determined by the singleton policies.

Returns:
a pointer to the singleton instance

BaseModel* ONE::model::ModelManager::getModelForName std::string  name  ) 
 

static void ONE::util::Automatic< ModelManager >::initInstance  )  [static, protected, inherited]
 

static bool ONE::util::Singleton< ModelManager , Automatic >::isActive  )  [static, inherited]
 

checks if the singleton is active

Returns:
if the singleton is instantiated

static bool ONE::util::Singleton< ModelManager , Automatic >::isDestroyed  )  [static, inherited]
 

checks if the singleton is destroyed

This function returns true if an instance existed and was destroyed. Note that in some cases it is possible to revive a singleton.

Returns:
if the singleton is destroyed

static bool ONE::util::Singleton< ModelManager , Automatic >::isVirgin  )  [static, inherited]
 

checks if the singleton has not been initialized

A singleton is not initialized if no instance exists and no instance has been destroyed.

Returns:
if the singleton is untouched

ONE::util::Singleton< ModelManager , Automatic >::Singleton  )  [protected, inherited]
 


Generated on Wed Sep 7 19:03:24 2005 for ONEngine by  doxygen 1.4.3