ATLAS Offline Software
ElementLink_p2.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DATAMODELATHENAPOOL_ELEMENTLINK_P2_H
6 #define DATAMODELATHENAPOOL_ELEMENTLINK_P2_H
7 
13 #include <string>
14 #include <inttypes.h>
15 
26 template <class INDEXTYPE>
28 public:
29 
31  : m_contIndex(0),
33  {}
34 
36  INDEXTYPE m_elementIndex;
37 };
38 
39 // If you define more ElementLink_pN types, remember to add template instantiations to the Dict file
40 
43 
44 
45 
46 // Helper template for conversion from the index type in transient ElementLink
47 // to the persistent index type
48 
49 template <typename ContIndxType>
51 // typedef MISSING_DEFINITION_OF_GenerateELinkIndexType_FOR_<ContIndxType> type;
52 };
53 
54 template<>
56  typedef uint32_t type;
57 };
58 
59 template<>
61  typedef uint32_t type;
62 };
63 
64 template<>
66  typedef uint32_t type;
67 };
68 
69 #ifdef __APPLE__
70 template<>
71 struct GenerateELinkIndexType_p2<size_t> {
72  typedef uint32_t type;
73 };
74 #endif
75 
76 template<>
77 struct GenerateELinkIndexType_p2<std::string> {
78  typedef std::string type;
79 };
80 
81 
82 // Helper template to generate type of the persistent ElementLink_pN
83 // from the type of the transient ElementLink
84 // Used in the ElementlinkCnv_pN
85 
86 template <class LINK>
89 };
90 
91 #endif // DATAMODELATHENAPOOL_ELEMENTLINK_P2_H
92 
93 
GenerateELinkIndexType_p2< std::string >::type
std::string type
Definition: ElementLink_p2.h:78
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
GeneratePersELinkType_p2::type
ElementLink_p2< typename GenerateELinkIndexType_p2< typename LINK::index_type >::type > type
Definition: ElementLink_p2.h:88
GeneratePersELinkType_p2
Definition: ElementLink_p2.h:87
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
GenerateELinkIndexType_p2< uint32_t >::type
uint32_t type
Definition: ElementLink_p2.h:56
GenerateELinkIndexType_p2< int >::type
uint32_t type
Definition: ElementLink_p2.h:66
GenerateELinkIndexType_p2
Definition: ElementLink_p2.h:50
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GenerateELinkIndexType_p2< uint64_t >::type
uint32_t type
Definition: ElementLink_p2.h:61