Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
AbstractFactory::Factory< TResult, TArgs > Class Template Referenceabstract

A class template for abstract factories: objects that construct values based on their internal state, and a variable number of parameters. More...

#include <factory.h>

Inheritance diagram for AbstractFactory::Factory< TResult, TArgs >:
Inheritance graph
Collaboration diagram for AbstractFactory::Factory< TResult, TArgs >:
Collaboration graph

Public Member Functions

virtual ~Factory ()
 Destructor needs to be virtual. More...
 
virtual TResult Create (TArgs...args)=0
 Instructs this factory to create a value. More...
 

Detailed Description

template<typename TResult, typename... TArgs>
class AbstractFactory::Factory< TResult, TArgs >

A class template for abstract factories: objects that construct values based on their internal state, and a variable number of parameters.

Definition at line 27 of file factory.h.

Constructor & Destructor Documentation

template<typename TResult, typename... TArgs>
virtual AbstractFactory::Factory< TResult, TArgs >::~Factory ( )
inlinevirtual

Destructor needs to be virtual.

Definition at line 31 of file factory.h.

Member Function Documentation

template<typename TResult, typename... TArgs>
virtual TResult AbstractFactory::Factory< TResult, TArgs >::Create ( TArgs...  args)
pure virtual

Instructs this factory to create a value.

Implemented in AbstractFactory::ConstantFactory< TResult, TArgs >.

Referenced by printEmployee().

Here is the caller graph for this function:


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