FactoryFunctions< Factory< T(ARGS...)>, SUPER > Class Template Reference

#include <factory.h>

Inheritance diagram for FactoryFunctions< Factory< T(ARGS...)>, SUPER >:

Detailed Description

template<typename T, typename... ARGS, typename SUPER>
class maxon::FactoryFunctions< Factory< T(ARGS...)>, SUPER >

This class defines the Create function for Factory.

Public Types

using type = FactoryFunctions
 
using DelegateType = Delegate< Result< T >(FactoryInterface::ConstPtr, ARGS...)>
 

Public Member Functions

 MAXON_DEFAULT_REFERENCE_CONSTRUCTORS (FactoryFunctions, typename SUPER::type)
 
Result< T > Create (ARGS... args) const
 

Member Typedef Documentation

◆ type

using type = FactoryFunctions

◆ DelegateType

using DelegateType = Delegate<Result<T>(FactoryInterface::ConstPtr, ARGS...)>

Member Function Documentation

◆ MAXON_DEFAULT_REFERENCE_CONSTRUCTORS()

MAXON_DEFAULT_REFERENCE_CONSTRUCTORS ( FactoryFunctions< Factory< T(ARGS...)>, SUPER >  ,
typename SUPER::type   
)

◆ Create()

Result<T> Create ( ARGS...  args) const

Creates a new object of type T given the arguments args.

Parameters
[in]argsArguments for the creation of the new object.
Returns
Created object.