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

Class wrapping the signature for a factory with 2 arguments. More...

#include <Gaudi/PluginService.h>

Public Types

typedef R ReturnType
 
typedef A1 Arg1Type
 
typedef A2 Arg2Type
 
typedef R(* FuncType )(Arg1Type, Arg2Type)
 

Static Public Member Functions

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

Detailed Description

template<typename R, typename A1, typename A2>
class Gaudi::PluginService::Factory2< R, A1, A2 >

Class wrapping the signature for a factory with 2 arguments.

Definition at line 86 of file PluginService.h.

Member Typedef Documentation

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

Definition at line 89 of file PluginService.h.

template<typename R , typename A1 , typename A2 >
typedef A2 Gaudi::PluginService::Factory2< R, A1, A2 >::Arg2Type

Definition at line 90 of file PluginService.h.

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

Definition at line 91 of file PluginService.h.

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

Definition at line 88 of file PluginService.h.

Member Function Documentation

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

Definition at line 93 of file PluginService.h.

95  {
96  const FuncType c = Details::getCreator<FuncType>(id);
97  return c ? (*c)(a1, a2) : 0;
98  }
tuple c
Definition: gaudirun.py:341
R(* FuncType)(Arg1Type, Arg2Type)
Definition: PluginService.h:91
template<typename R , typename A1 , typename A2 >
template<typename T >
static ReturnType Gaudi::PluginService::Factory2< R, A1, A2 >::create ( const T &  id,
Arg1Type  a1,
Arg2Type  a2 
)
inlinestatic

Definition at line 101 of file PluginService.h.

103  {
104  std::ostringstream o; o << id;
105  return create(o.str(), a1, a2);
106  }
static ReturnType create(const std::string &id, Arg1Type a1, Arg2Type a2)
Definition: PluginService.h:93

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