BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | List of all members
BALL::Factory< T > Class Template Reference

#include <BALL/CONCEPT/factory.h>

Static Public Member Functions

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

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.

Definition at line 24 of file factory.h.

Member Function Documentation

template<typename T >
static T* BALL::Factory< T >::create ( )
inlinestatic

Return a pointer to a new instance of T.

Definition at line 29 of file factory.h.

template<typename T >
static void* BALL::Factory< T >::createVoid ( )
inlinestatic

Return a void pointer to a new instance of T.

Definition at line 32 of file factory.h.

template<typename T >
static const T& BALL::Factory< T >::getDefault ( )
inlinestatic

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

Definition at line 35 of file factory.h.