#include <factory.h>
Specialization for the case of a Factory with single DataDictionary argument. It allows to call the Create function without any argument, then an empty DataDictionary is used.
Public Types | |
using | type = FactoryFunctions |
using | DelegateType = Delegate< Result< T >(FactoryInterface::ConstPtr, const DataDictionary &)> |
Public Member Functions | |
MAXON_DEFAULT_REFERENCE_CONSTRUCTORS (FactoryFunctions, typename SUPER::type) | |
Result< T > | Create (const DataDictionary &args=DefaultValue< const DataDictionary & >()) const |
Result< T > | Create (Result< DataDictionary > &&args) const |
using type = FactoryFunctions |
using DelegateType = Delegate<Result<T>(FactoryInterface::ConstPtr, const DataDictionary&)> |
MAXON_DEFAULT_REFERENCE_CONSTRUCTORS | ( | FactoryFunctions< Factory< T(const DataDictionary &)>, SUPER > | , |
typename SUPER::type | |||
) |
Result<T> Create | ( | const DataDictionary & | args = DefaultValue<const DataDictionary&>() | ) | const |
Creates a new object of type T given the arguments args.
[in] | args | Arguments for the creation of the new object. |