Homepage Demos Overview Downloads Tutorials Reference
Credits

Factory< B > Class Template Reference

#include <Factory.h>

Inheritance diagram for Factory< B >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class B>
class Factory< B >

A lightweight class to override for constructing new objects (if you need to pass constructors parameters, etc.).

Say you don't want to construct your behavior at boot-up (if it's big and might not even be used) but your behavior needs special setup during creation (might be invoked several difference ways for instance) then you'll want to subclass this to do the setup when your behavior is activated.
The default is to simply call the default constructor

Definition at line 12 of file Factory.h.

Static Public Member Functions

static B * construct ()
 Just returns a new B.


Member Function Documentation

template<class B>
static B* Factory< B >::construct  )  [inline, static]
 

Just returns a new B.

Reimplemented in Factory1Arg< B, A1, a1 >, Factory2Arg< B, A1, a1, A2, a2 >, Factory3Arg< B, A1, a1, A2, a2, A3, a3 >, and Factory4Arg< B, A1, a1, A2, a2, A3, a3, A4, a4 >.

Definition at line 14 of file Factory.h.


The documentation for this class was generated from the following file:

Tekkotsu v2.2.2
Generated Tue Jan 4 15:45:24 2005 by Doxygen 1.4.0