All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Gaudi::PluginService::Factory1< R, A1 > Class Template Reference

Class wrapping the signature for a factory with 1 argument. More...

#include <Gaudi/PluginService.h>

Public Types

typedef R ReturnType
 
typedef A1 Arg1Type
 
typedef R(* FuncType )(Arg1Type)
 

Static Public Member Functions

static ReturnType create (const std::string &id, Arg1Type a1)
 
template<typename T >
static ReturnType create (const T &id, Arg1Type a1)
 

Detailed Description

template<typename R, typename A1>
class Gaudi::PluginService::Factory1< R, A1 >

Class wrapping the signature for a factory with 1 argument.

Definition at line 64 of file PluginService.h.

Member Typedef Documentation

template<typename R , typename A1 >
typedef A1 Gaudi::PluginService::Factory1< R, A1 >::Arg1Type

Definition at line 67 of file PluginService.h.

template<typename R , typename A1 >
typedef R(* Gaudi::PluginService::Factory1< R, A1 >::FuncType)(Arg1Type)

Definition at line 68 of file PluginService.h.

template<typename R , typename A1 >
typedef R Gaudi::PluginService::Factory1< R, A1 >::ReturnType

Definition at line 66 of file PluginService.h.

Member Function Documentation

template<typename R , typename A1 >
static ReturnType Gaudi::PluginService::Factory1< R, A1 >::create ( const std::string &  id,
Arg1Type  a1 
)
inlinestatic

Definition at line 70 of file PluginService.h.

71  {
72  const FuncType c = Details::getCreator<FuncType>(id);
73  return c ? (*c)(a1) : 0;
74  }
tuple c
Definition: gaudirun.py:341
template<typename R , typename A1 >
template<typename T >
static ReturnType Gaudi::PluginService::Factory1< R, A1 >::create ( const T &  id,
Arg1Type  a1 
)
inlinestatic

Definition at line 77 of file PluginService.h.

78  {
79  std::ostringstream o; o << id;
80  return create(o.str(), a1);
81  }
static ReturnType create(const std::string &id, Arg1Type a1)
Definition: PluginService.h:70

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