BALL::Factory< T > Class Template Reference
[Miscellaneous]

#include <BALL/CONCEPT/factory.h>

List of all members.


Static Public Member Functions

static T * create ()
 

Return a pointer to a new instance of T.


static void * createVoid ()
 

Return a void pointer to a new instance of T.


static const T & getDefault ()
 

Return a reference to a (pre-instantiated) default object.



Detailed Description

template<typename T>
class BALL::Factory< T >

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


Member Function Documentation

template<typename T >
static T* BALL::Factory< T >::create (  )  [inline, static]

Return a pointer to a new instance of T.

template<typename T >
static void* BALL::Factory< T >::createVoid (  )  [inline, static]

Return a void pointer to a new instance of T.

template<typename T >
static const T& BALL::Factory< T >::getDefault (  )  [inline, static]

Return a reference to a (pre-instantiated) default object.