StaticNamedSingleton< T > Struct Template Reference#include <namedSingleton.h>
Inheritance diagram for StaticNamedSingleton< T >: ![]() Detailed Description
Collection of statically registered named singletons.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| T | Arbitrary type parameter; identical types will share static data. |
Public Types | |
| typedef StaticNamedSingleton | This |
Public Member Functions | |
| StaticNamedSingleton (const char *name) | |
| virtual | ~StaticNamedSingleton () |
| const char * | getName () |
| T * | getNext () |
Static Public Member Functions | |
| static T * | staticGetFirst () |
| static T * | staticFindSingleton (const char *name) |
| Find the instance with the given name. | |
| static EnumTable * | staticCreateEnumTable () |
| Create a TorqueScript EnumTable that contains all registered instance names. | |
| static U32 | staticGetNumSingletons () |
| Return the number of registered named singletons. | |
Private Attributes | |
| const char * | mName |
| This * | mNext |
Static Private Attributes | |
| static This * | smSingletons |
| typedef StaticNamedSingleton StaticNamedSingleton< T >::This |
| StaticNamedSingleton< T >::StaticNamedSingleton | ( | const char * | name | ) |
| virtual StaticNamedSingleton< T >::~StaticNamedSingleton | ( | ) | [inline, virtual] |
| const char * StaticNamedSingleton< T >::getName | ( | ) | [inline] |
| T * StaticNamedSingleton< T >::getNext | ( | ) | [inline] |
| T * StaticNamedSingleton< T >::staticGetFirst | ( | ) | [static] |
| T * StaticNamedSingleton< T >::staticFindSingleton | ( | const char * | name | ) | [static] |
Find the instance with the given name.
Returns NULL if no such instance exists.
| EnumTable * StaticNamedSingleton< T >::staticCreateEnumTable | ( | ) | [static] |
Create a TorqueScript EnumTable that contains all registered instance names.
| U32 StaticNamedSingleton< T >::staticGetNumSingletons | ( | ) | [static] |
Return the number of registered named singletons.
const char* StaticNamedSingleton< T >::mName [private] |
This* StaticNamedSingleton< T >::mNext [private] |
StaticNamedSingleton< T > * StaticNamedSingleton< T >::smSingletons [static, private] |