Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

Factory< T > Class Template Reference
[Miscellaneous]

Factory class. More...

#include <factory.h>

List of all members.

Static Public Member Functions

T * create ()
 Return a pointer to a new instance of T.
void * createVoid ()
 Return a void pointer to a new instance of T.
const T & getDefault ()
 Return a reference to a (pre-instantiated) default object.


Detailed Description

template<typename T>
class Factory< T >

Factory class.

The factory class is used to create objects of the type it was parameterized with.