| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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
| ) |  |
| inline static

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
| ) |  |
| inline static

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:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiPluginService/Gaudi/PluginService.h