Factory< B > Class Template Reference#include <Factory.h>
Inheritance diagram for Factory< B >:
[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 |
B * | construct () |
| Just returns a new B.
|
Member Function Documentation
template<class B> |
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:
|