Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
UtilAlgos
interface
FwdPtrConversionFactory.h
Go to the documentation of this file.
1
#ifndef CommonTools_UtilAlgos_FwdPtrConversionFactory_h
2
#define CommonTools_UtilAlgos_FwdPtrConversionFactory_h
3
4
14
namespace
edm {
18
template
<
class
T>
19
class
ProductFromFwdPtrFactory
:
public
std::unary_function<edm::FwdPtr<T>, T > {
20
public
:
21
T
operator()
(
edm::FwdPtr<T>
const
&
r
)
const
{
return
T
(*r); }
22
};
23
24
25
26
29
template
<
class
T>
30
class
FwdPtrFromProductFactory
:
public
std::binary_function<edm::View<T>, unsigned int, edm::FwdPtr<T> > {
31
public
:
32
edm::FwdPtr<T>
operator()
(
edm::View<T>
const
& view,
unsigned
int
i
)
const
{
return
edm::FwdPtr<T>
(view.ptrAt(i),view.ptrAt(i)); }
33
};
34
35
36
37
}
38
39
#endif
edm::View< T >
i
int i
Definition:
DBlmapReader.cc:9
edm::FwdPtrFromProductFactory::operator()
edm::FwdPtr< T > operator()(edm::View< T > const &view, unsigned int i) const
Definition:
FwdPtrConversionFactory.h:32
edm::FwdPtrFromProductFactory
Definition:
FwdPtrConversionFactory.h:30
edm::ProductFromFwdPtrFactory::operator()
T operator()(edm::FwdPtr< T > const &r) const
Definition:
FwdPtrConversionFactory.h:21
edm::ProductFromFwdPtrFactory
Definition:
FwdPtrConversionFactory.h:19
alignCSCRings.r
list r
Definition:
alignCSCRings.py:92
T
long double T
Definition:
Basic3DVectorLD.h:57
edm::FwdPtr
Definition:
FwdPtr.h:42
Generated for CMSSW Reference Manual by
1.8.5