Gaudi Framework, version v25r0
Home
Generated: Mon Feb 17 2014
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiAlg
GaudiAlg
Tuples.h
Go to the documentation of this file.
1
// $Id: Tuples.h,v 1.5 2006/03/09 10:28:15 hmd Exp $
2
// ============================================================================
3
#ifndef GAUDIALG_TUPLES_H
4
#define GAUDIALG_TUPLES_H 1
5
// ============================================================================
6
// GaudiAlg
7
// ============================================================================
8
#include "
GaudiAlg/TupleObj.h
"
9
// ============================================================================
10
18
namespace
Tuples
19
{
20
class
Tuple
;
21
class
TupleObj ;
22
}
// end of namespace Tuples
23
24
25
namespace
Tuples
26
{
34
template
<
class
OBJECT,
class
ARGUMENT=
double
,
class
RESULT=
double
>
35
class
_TupAdapter
:
public
std::unary_function
<ARGUMENT,RESULT>
36
{
37
public
:
38
// constructor
39
_TupAdapter
(
OBJECT
object
) :
m_object
( object ) {} ;
40
public
:
42
inline
RESULT
operator()
( ARGUMENT arg )
const
43
{
return
m_object
( arg ) ; }
44
private
:
45
// default constructor is disabled
46
_TupAdapter
();
47
private
:
48
OBJECT
m_object
;
49
};
50
79
template
<
class
OBJECT>
80
inline
_TupAdapter<OBJECT,double,double>
useFun
(
OBJECT
object
)
81
{
return
_TupAdapter<OBJECT,double,double>
( object ) ; }
82
83
}
// end of namespace Tuples
84
85
#endif // GAUDIALG_TUPLES_H
Generated at Mon Feb 17 2014 14:37:38 for Gaudi Framework, version v25r0 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004