Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Framework
interface
ProxyArgumentFactoryTemplate.h
Go to the documentation of this file.
1
#ifndef Framework_ProxyArgumentFactoryTemplate_h
2
#define Framework_ProxyArgumentFactoryTemplate_h
3
// -*- C++ -*-
4
//
5
// Package: Framework
6
// Class : ProxyArgumentFactoryTemplate
7
//
16
//
17
// Author: Chris Jones
18
// Created: Mon Apr 11 16:20:52 CDT 2005
19
//
20
21
// system include files
22
#include <memory>
23
#include <string>
24
25
// user include files
26
#include "
FWCore/Framework/interface/ProxyFactoryBase.h
"
27
#include "
FWCore/Framework/interface/DataKey.h
"
28
29
// forward declarations
30
namespace
edm {
31
namespace
eventsetup {
32
33
template
<
class
T,
class
ArgT>
34
class
ProxyArgumentFactoryTemplate
:
public
ProxyFactoryBase
35
{
36
37
public
:
38
typedef
typename
T::record_type
record_type
;
39
40
ProxyArgumentFactoryTemplate
(ArgT iArg) :
arg_
(iArg) {}
41
//virtual ~ProxyArgumentFactoryTemplate()
42
43
// ---------- const member functions ---------------------
44
virtual
std::auto_ptr<DataProxy>
makeProxy
()
const
{
45
return
std::auto_ptr<DataProxy>(
new
T
(
arg_
));
46
}
47
48
virtual
DataKey
makeKey
(
const
std::string
& iName)
const
{
49
return
DataKey
(DataKey::makeTypeTag< typename T::value_type>(),iName.c_str());
50
}
51
52
// ---------- static member functions --------------------
53
54
// ---------- member functions ---------------------------
55
56
private
:
57
ProxyArgumentFactoryTemplate
(
const
ProxyArgumentFactoryTemplate
&);
// stop default
58
59
const
ProxyArgumentFactoryTemplate
&
operator=
(
const
ProxyArgumentFactoryTemplate
&);
// stop default
60
61
// ---------- member data --------------------------------
62
mutable
ArgT
arg_
;
63
};
64
65
}
66
}
67
#endif
edm::eventsetup::ProxyArgumentFactoryTemplate::makeKey
virtual DataKey makeKey(const std::string &iName) const
Definition:
ProxyArgumentFactoryTemplate.h:48
DataKey.h
edm::eventsetup::ProxyArgumentFactoryTemplate::arg_
ArgT arg_
Definition:
ProxyArgumentFactoryTemplate.h:62
edm::eventsetup::ProxyArgumentFactoryTemplate::operator=
const ProxyArgumentFactoryTemplate & operator=(const ProxyArgumentFactoryTemplate &)
edm::eventsetup::ProxyFactoryBase
Definition:
ProxyFactoryBase.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::eventsetup::ProxyArgumentFactoryTemplate::ProxyArgumentFactoryTemplate
ProxyArgumentFactoryTemplate(ArgT iArg)
Definition:
ProxyArgumentFactoryTemplate.h:40
edm::eventsetup::ProxyArgumentFactoryTemplate
Definition:
ProxyArgumentFactoryTemplate.h:34
edm::eventsetup::ProxyArgumentFactoryTemplate::record_type
T::record_type record_type
Definition:
ProxyArgumentFactoryTemplate.h:38
edm::eventsetup::ProxyArgumentFactoryTemplate::makeProxy
virtual std::auto_ptr< DataProxy > makeProxy() const
Definition:
ProxyArgumentFactoryTemplate.h:44
edm::eventsetup::DataKey
Definition:
DataKey.h:30
ProxyFactoryBase.h
T
long double T
Definition:
Basic3DVectorLD.h:59
Generated for CMSSW Reference Manual by
1.8.5