Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Factories.h File Reference

Defines a variety of factory templates which can be used with FamilyFactory. This is not (and couldn't be) an exhaustive list of Factory configurations. It provides some commonly used configurations, and should give you some examples and ideas how to create your own for more complex cases. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FactoryInvalidT< typename >
 A factory interface which doesn't actually allow anything to be produced (for completeness, like 'NULL'). More...
struct  FactoryInvalidT< typename >::Factory< U >
 concrete class for not doing anything More...
struct  Factory0ArgBase
 Untyped base class for factories which don't require any arguments to construct their product, see Factories.h file notes (see Factory0Arg). More...
struct  Factory0Arg< Base >
 Typed base class for factories which don't require any arguments to construct their product, see Factories.h file notes. More...
struct  Factory0Arg< Base >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
struct  Factory0Arg1Static< Base, S1, s1 >
 This class produces objects based on a constant specified as a template parameter. More...
struct  Factory0Arg1Static< Base, S1, s1 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
struct  Factory0Arg1Member< Base, M1 >
 This class produces objects based on a constant specified as a factory member. More...
struct  Factory0Arg1Member< Base, M1 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
struct  Factory0Arg2Static< Base, S1, s1, S2, s2 >
 This class produces objects based on constant values specified as a template parameters. More...
struct  Factory0Arg2Static< Base, S1, s1, S2, s2 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
class  SingletonFactory< T >
 A factory for singleton classes which return the instance via getInstance(). More...
struct  Factory1ArgBase< A1 >
 Untyped base class for factories which require a single argument to construct their product, which is passed to the concrete Factory's functor (see Factory1Arg). More...
struct  Factory1Arg< Base, A1 >
 Typed base class for factories which require a single argument to construct their product, which is passed to the concrete Factory's functor. More...
struct  Factory1Arg< Base, A1 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
struct  Factory1Arg1Static< Base, A1, S1, s1 >
 This class produces objects based on a functor argument and a constant specified as a template parameter. More...
struct  Factory1Arg1Static< Base, A1, S1, s1 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
struct  Factory1Static1Arg< Base, S1, s1, A1 >
 This class produces objects based on a constant specified as a template parameter and a constructor argument. More...
struct  Factory1Static1Arg< Base, S1, s1, A1 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
struct  Factory0_1Arg< Base, A1 >
 Base class for factories which can create products more than one way, in this case via default constructor (0 arguments) or 1-argument constructor. More...
struct  Factory0_1Arg< Base, A1 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...
struct  Factory1Static_1Arg< Base, S1, s1, A1 >
 Variant of Factory0_1Arg, this uses a constant non-type template parameter to specify a default value to use when the 0-argument functor is called... More...
struct  Factory1Static_1Arg< Base, S1, s1, A1 >::Factory< T >
 concrete class for constructing products of a specified subtype of Base More...

Typedefs

typedef FactoryInvalidT FactoryInvalid
 specialization: all invalid factories are the same...

Detailed Description

Defines a variety of factory templates which can be used with FamilyFactory. This is not (and couldn't be) an exhaustive list of Factory configurations. It provides some commonly used configurations, and should give you some examples and ideas how to create your own for more complex cases.

Factory0Arg and Factory1Arg allow you to instantiate classes with 0 or 1 arguments respectively. Subclasses of these interfaces allow you to specify additional parameters to the product's constructor call. Factory0_1Arg shows how to combine Factory configurations so you can have multiple constructor options at runtime.

Author:
ejt (Creator)

Definition in file Factories.h.


Typedef Documentation

specialization: all invalid factories are the same...

Definition at line 12 of file Factories.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:55 2016 by Doxygen 1.6.3