Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Factory1Arg< Base, A1 > Struct Template Reference

#include <Factories.h>

Inheritance diagram for Factory1Arg< Base, A1 >:

List of all members.


Detailed Description

template<class Base, class A1>
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.

Note that this does not mean the product can only be constructed with only one argument... see Factory1Arg1Static for example.

Definition at line 97 of file Factories.h.


Public Member Functions

virtual Base * operator() (const A1 &a1)=0
 functor interface for constructing the product
virtual void * construct (const A1 &a1)
 functor interface for constructing the product

Classes

struct  Factory
 concrete class for constructing products of a specified subtype of Base More...

Member Function Documentation

template<class Base, class A1>
virtual Base* Factory1Arg< Base, A1 >::operator() ( const A1 &  a1  )  [pure virtual]

template<class Base, class A1>
virtual void* Factory1Arg< Base, A1 >::construct ( const A1 &  a1  )  [inline, virtual]

functor interface for constructing the product

Implements Factory1ArgBase< A1 >.

Definition at line 100 of file Factories.h.


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:22 2007 by Doxygen 1.5.4