Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
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 19 of file Factory.h.

Public Member Functions

virtual B * construct ()
 Just returns a new B.
virtual void * constructTemplate ()
 return a new object from the Factory subclass


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

Tekkotsu v3.0
Generated Fri May 11 20:08:07 2007 by Doxygen 1.4.7