Gobelijn API documentation
- generated for commit a0cbea7
|
A factory class template that always returns a constant, pre-defined value. More...
#include <constant-factory.h>
Public Member Functions | |
ConstantFactory (const TResult &value) | |
Creates a factory that always produces the given value. More... | |
TResult | Create (TArgs...) final |
Instructs this factory to create a value. More... | |
virtual | ~ConstantFactory ()=default |
![]() | |
virtual | ~Factory () |
Destructor needs to be virtual. More... | |
Private Attributes | |
TResult | m_value |
A factory class template that always returns a constant, pre-defined value.
Any arguments are always discarded.
Definition at line 29 of file constant-factory.h.
|
inline |
Creates a factory that always produces the given value.
Definition at line 33 of file constant-factory.h.
|
virtualdefault |
|
inlinefinalvirtual |
Instructs this factory to create a value.
Implements AbstractFactory::Factory< TResult, TArgs...>.
Definition at line 36 of file constant-factory.h.
References AbstractFactory::ConstantFactory< TResult, TArgs >::m_value.
|
private |
Definition at line 42 of file constant-factory.h.
Referenced by AbstractFactory::ConstantFactory< TResult, TArgs >::Create().