OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::PCZoneFactoryManager Class Reference

#include <OgrePCZoneFactory.h>

+ Inheritance diagram for Ogre::PCZoneFactoryManager:
+ Collaboration diagram for Ogre::PCZoneFactoryManager:

Public Types

typedef MapIterator
< PCZoneFactoryMap
PCZoneFactoryIterator
 
typedef map< String,
PCZoneFactory * >::type 
PCZoneFactoryMap
 

Public Member Functions

 PCZoneFactoryManager ()
 
 ~PCZoneFactoryManager ()
 
PCZonecreatePCZone (PCZSceneManager *pczsm, const String &zoneType, const String &zoneName)
 
PCZoneFactoryIterator getPCZoneFactoryIterator (void)
 Return an iterator over the PCZone factories currently registered. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
void registerPCZoneFactory (PCZoneFactory *factory)
 
void unregisterPCZoneFactory (PCZoneFactory *factory)
 

Static Public Member Functions

static PCZoneFactoryManagergetSingleton (void)
 Override standard Singleton retrieval. More...
 
static PCZoneFactoryManagergetSingletonPtr (void)
 Override standard Singleton retrieval. More...
 

Protected Attributes

DefaultZoneFactory mDefaultFactory
 
PCZoneFactoryMap mPCZoneFactories
 

Static Protected Attributes

static PCZoneFactoryManagermsSingleton
 

Detailed Description

Definition at line 73 of file OgrePCZoneFactory.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Ogre::PCZoneFactoryManager::PCZoneFactoryManager ( )
Ogre::PCZoneFactoryManager::~PCZoneFactoryManager ( )

Member Function Documentation

PCZone* Ogre::PCZoneFactoryManager::createPCZone ( PCZSceneManager pczsm,
const String zoneType,
const String zoneName 
)
PCZoneFactoryIterator Ogre::PCZoneFactoryManager::getPCZoneFactoryIterator ( void  )

Return an iterator over the PCZone factories currently registered.

static PCZoneFactoryManager& Ogre::PCZoneFactoryManager::getSingleton ( void  )
static

Override standard Singleton retrieval.

Remarks
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.
static PCZoneFactoryManager* Ogre::PCZoneFactoryManager::getSingletonPtr ( void  )
static

Override standard Singleton retrieval.

Remarks
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::PCZoneFactoryManager::registerPCZoneFactory ( PCZoneFactory factory)
void Ogre::PCZoneFactoryManager::unregisterPCZoneFactory ( PCZoneFactory factory)

Member Data Documentation

DefaultZoneFactory Ogre::PCZoneFactoryManager::mDefaultFactory
protected

Definition at line 124 of file OgrePCZoneFactory.h.

PCZoneFactoryMap Ogre::PCZoneFactoryManager::mPCZoneFactories
protected

Definition at line 123 of file OgrePCZoneFactory.h.

PCZoneFactoryManager * Ogre::Singleton< PCZoneFactoryManager >::msSingleton
staticprotectedinherited

Definition at line 75 of file OgreSingleton.h.


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