Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Factory1Arg< Base, A1 > Struct Template Reference

Typed base class for factories which require a single argument to construct their product, which is passed to the concrete Factory's functor. More...

#include <Factories.h>

Inheritance diagram for Factory1Arg< Base, A1 >:

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 103 of file Factories.h.

List of all members.

Classes

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

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

Member Function Documentation

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

functor interface for constructing the product

Implements Factory1ArgBase< A1 >.

Definition at line 106 of file Factories.h.

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

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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:07 2016 by Doxygen 1.6.3