Gaudi Framework, version v25r2

Home   Generated: Wed Jun 4 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Static Public Member Functions | List of all members
Gaudi::PluginService::Factory2< R, A1, A2 > Class Template Reference

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

#include <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 85 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 88 of file PluginService.h.

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

Definition at line 89 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 90 of file PluginService.h.

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

Definition at line 87 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 92 of file PluginService.h.

{
const FuncType c = Details::getCreator<FuncType>(id);
return c ? (*c)(a1, a2) : 0;
}
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 100 of file PluginService.h.

{
std::ostringstream o; o << id;
return create(o.str(), a1, a2);
}

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

Generated at Wed Jun 4 2014 14:49:05 for Gaudi Framework, version v25r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004