The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::PluginService::v1::Factory< R, Args > Class Template Reference

Class wrapping the signature for a factory with any number of arguments. More...

#include </builds/gaudi/Gaudi/GaudiPluginService/include/Gaudi/PluginServiceV1.h>

Public Types

typedef R ReturnType
typedef R(* FuncType) (Args &&...)

Static Public Member Functions

static ReturnType create (const std::string &id, Args... args)
template<typename T>
static ReturnType create (const T &id, Args... args)

Detailed Description

template<typename R, typename... Args>
class Gaudi::PluginService::v1::Factory< R, Args >

Class wrapping the signature for a factory with any number of arguments.

Definition at line 54 of file PluginServiceV1.h.

Member Typedef Documentation

◆ FuncType

template<typename R, typename... Args>
typedef R(* Gaudi::PluginService::v1::Factory< R, Args >::FuncType) (Args &&...)

Definition at line 57 of file PluginServiceV1.h.

◆ ReturnType

template<typename R, typename... Args>
typedef R Gaudi::PluginService::v1::Factory< R, Args >::ReturnType

Definition at line 56 of file PluginServiceV1.h.

Member Function Documentation

◆ create() [1/2]

template<typename R, typename... Args>
ReturnType Gaudi::PluginService::v1::Factory< R, Args >::create ( const std::string & id,
Args... args )
inlinestatic

Definition at line 59 of file PluginServiceV1.h.

59 {
61 return c ? ( *c )( std::forward<Args>( args )... ) : 0;
62 }
Class wrapping the signature for a factory with any number of arguments.
GAUDIPS_API void * getCreator(const std::string &id, const std::string &type)
Function used to load a specific factory function.

◆ create() [2/2]

template<typename R, typename... Args>
template<typename T>
ReturnType Gaudi::PluginService::v1::Factory< R, Args >::create ( const T & id,
Args... args )
inlinestatic

Definition at line 65 of file PluginServiceV1.h.

65 {
67 o << id;
68 return create( o.str(), std::forward<Args>( args )... );
69 }
static ReturnType create(const std::string &id, Args... args)

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