test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
Framework
interface
ProxyFactoryTemplate.h
Go to the documentation of this file.
1
#ifndef Framework_ProxyFactoryTemplate_h
2
#define Framework_ProxyFactoryTemplate_h
3
// -*- C++ -*-
4
//
5
// Package: Framework
6
// Class : ProxyFactoryTemplate
7
//
16
//
17
// Author: Chris Jones
18
// Created: Fri Apr 8 07:59:32 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>
34
class
ProxyFactoryTemplate
:
public
ProxyFactoryBase
35
{
36
37
public
:
38
typedef
typename
T::record_type
record_type
;
39
40
ProxyFactoryTemplate
() {}
41
//virtual ~ProxyFactoryTemplate();
42
43
// ---------- const member functions ---------------------
44
virtual
std::auto_ptr<DataProxy>
makeProxy
()
const
{
45
return
std::auto_ptr<DataProxy>(
new
T
);
46
}
47
48
49
virtual
DataKey
makeKey
(
const
std::string
& iName)
const
{
50
return
DataKey
(DataKey::makeTypeTag< typename T::value_type>(),iName.c_str());
51
}
52
53
// ---------- static member functions --------------------
54
55
// ---------- member functions ---------------------------
56
57
private
:
58
ProxyFactoryTemplate
(
const
ProxyFactoryTemplate
&);
// stop default
59
60
const
ProxyFactoryTemplate
&
operator=
(
const
ProxyFactoryTemplate
&);
// stop default
61
62
// ---------- member data --------------------------------
63
64
};
65
66
}
67
}
68
69
#endif
DataKey.h
edm::eventsetup::ProxyFactoryTemplate::ProxyFactoryTemplate
ProxyFactoryTemplate()
Definition:
ProxyFactoryTemplate.h:40
edm::eventsetup::ProxyFactoryBase
Definition:
ProxyFactoryBase.h:32
edm::eventsetup::ProxyFactoryTemplate::makeProxy
virtual std::auto_ptr< DataProxy > makeProxy() const
Definition:
ProxyFactoryTemplate.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::eventsetup::ProxyFactoryTemplate::record_type
T::record_type record_type
Definition:
ProxyFactoryTemplate.h:38
edm::eventsetup::DataKey
Definition:
DataKey.h:30
ProxyFactoryBase.h
edm::eventsetup::ProxyFactoryTemplate
Definition:
ProxyFactoryTemplate.h:34
T
long double T
Definition:
Basic3DVectorLD.h:57
edm::eventsetup::ProxyFactoryTemplate::operator=
const ProxyFactoryTemplate & operator=(const ProxyFactoryTemplate &)
edm::eventsetup::ProxyFactoryTemplate::makeKey
virtual DataKey makeKey(const std::string &iName) const
Definition:
ProxyFactoryTemplate.h:49
Generated for CMSSW Reference Manual by
1.8.5