DataFormats
Common
interface
MapRefViewTrait.h
Go to the documentation of this file.
1
#ifndef DataFormats_Common_MapRefViewTrait_h
2
#define DataFormats_Common_MapRefViewTrait_h
3
#include "
DataFormats/Common/interface/Ref.h
"
4
#include "
DataFormats/Common/interface/RefProd.h
"
5
#include "
DataFormats/Common/interface/RefToBase.h
"
6
#include "
DataFormats/Common/interface/RefToBaseProd.h
"
7
#include <map>
8
9
namespace
edm
{
10
namespace
helper
{
11
template
<
typename
C>
12
struct
MapRefViewTrait
{
13
typedef
Ref<C>
ref_type
;
14
typedef
RefProd<C>
refprod_type
;
15
};
16
17
template
<
typename
T>
18
struct
MapRefViewTrait
<
View
<
T
> > {
19
typedef
RefToBase<T>
ref_type
;
20
typedef
RefToBaseProd<T>
refprod_type
;
21
};
22
}
// namespace helper
23
}
// namespace edm
24
25
#endif
edm::RefProd
Definition:
EDProductfwd.h:25
RefProd.h
edm::helper::MapRefViewTrait
Definition:
MapRefViewTrait.h:12
edm::helper::MapRefViewTrait::refprod_type
RefProd< C > refprod_type
Definition:
MapRefViewTrait.h:14
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::Ref
Definition:
AssociativeIterator.h:58
RefToBase.h
RefToBaseProd.h
edm::View
Definition:
CaloClusterFwd.h:14
edm::helper::MapRefViewTrait::ref_type
Ref< C > ref_type
Definition:
MapRefViewTrait.h:13
helper
Definition:
helper.py:1
edm::helper::MapRefViewTrait< View< T > >::refprod_type
RefToBaseProd< T > refprod_type
Definition:
MapRefViewTrait.h:20
Ref.h
T
long double T
Definition:
Basic3DVectorLD.h:48
edm::RefToBase
Definition:
AssociativeIterator.h:54
edm::helper::MapRefViewTrait< View< T > >::ref_type
RefToBase< T > ref_type
Definition:
MapRefViewTrait.h:19
edm::RefToBaseProd
Definition:
RefToBase.h:65
Generated for CMSSW Reference Manual by
1.8.16