DataFormats
Common
interface
CloneTrait.h
Go to the documentation of this file.
1
#ifndef DataFormats_Common_CloneTrait_h
2
#define DataFormats_Common_CloneTrait_h
3
#include "
DataFormats/Common/interface/CopyPolicy.h
"
4
#include "
DataFormats/Common/interface/OwnVector.h
"
5
#include "
DataFormats/Common/interface/View.h
"
6
#include "
DataFormats/Common/interface/RefToBaseVector.h
"
7
#include <vector>
8
9
namespace
edm
{
10
namespace
clonehelper {
11
template
<
typename
T>
12
struct
CloneTrait
;
13
14
template
<
typename
T>
15
struct
CloneTrait
<
std
::
vector
<T> > {
16
typedef
CopyPolicy<T>
type
;
17
};
18
19
template
<
typename
T>
20
struct
CloneTrait
<
edm
::
OwnVector
<T> > {
21
typedef
ClonePolicy<T>
type
;
22
};
23
24
template
<
typename
T>
25
struct
CloneTrait
<
edm
::
View
<T> > {
26
typedef
ClonePolicy<T>
type
;
27
};
28
29
template
<
typename
T>
30
struct
CloneTrait
<
edm
::
RefToBaseVector
<T> > {
31
typedef
CopyPolicy<RefToBase<T>
>
type
;
32
};
33
34
}
// namespace clonehelper
35
}
// namespace edm
36
37
#endif
edm::clonehelper::CloneTrait< std::vector< T > >::type
CopyPolicy< T > type
Definition:
CloneTrait.h:16
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::CopyPolicy
Definition:
CopyPolicy.h:6
edm::ClonePolicy
Definition:
ClonePolicy.h:6
edm::clonehelper::CloneTrait< edm::OwnVector< T > >::type
ClonePolicy< T > type
Definition:
CloneTrait.h:21
edm::clonehelper::CloneTrait
Definition:
CloneTrait.h:12
RefToBaseVector.h
edm::View
Definition:
CaloClusterFwd.h:14
edm::clonehelper::CloneTrait< edm::View< T > >::type
ClonePolicy< T > type
Definition:
CloneTrait.h:26
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
CopyPolicy.h
edm::RefToBaseVector
Definition:
EDProductfwd.h:29
std
Definition:
JetResolutionObject.h:76
View.h
OwnVector.h
edm::OwnVector
Definition:
OwnVector.h:24
edm::clonehelper::CloneTrait< edm::RefToBaseVector< T > >::type
CopyPolicy< RefToBase< T > > type
Definition:
CloneTrait.h:31
Generated for CMSSW Reference Manual by
1.8.16