ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaPoolTestMapDataLink.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
13
14#ifndef ATHENAPOOLTESTDATA_ATHENAPOOLTESTMAPDATALINK_H
15# define ATHENAPOOLTESTDATA_ATHENAPOOLTESTMAPDATALINK_H
16
23
24#include <cassert>
25#include <iostream>
26#include <limits> /* numeric_limits */
27#include <string>
28
29class MyDummyClass;
30
32public:
33 typedef unsigned int index_type;
34
36
39 AthenaPoolTestMapDataLink(const MyDummyClass* p, index_type eventIndex = 0);
41
43
44 int barcode() const;
45 index_type eventIndex() const;
47
48 const MyDummyClass* cptr() const;
49
51 public:
54
55 unsigned long barcode() const;
56 unsigned short eventIndex() const;
57
58 private:
59 unsigned long m_BC;
60 unsigned short m_evtIndex;
61 };
62private:
63 MyDummyClass* m_particle; /* transient */
65};
66
67
69
75
76inline unsigned long \
77AthenaPoolTestMapDataLink::ExtendedBarCode::barcode() const
78{
79 return (m_BC);
80}
81
82inline unsigned short
87
88inline
90
91inline
94
95inline
98
99inline int
101{ return int(m_extBarcode.barcode()); } //FIXME ret type
102
103inline const MyDummyClass*
105{
106 return (m_particle);
107}
108
109
113
114
115//<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
116//<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
117
118#endif // ATHENAPOOLTESTDATA_ATHENAPOOLTESTMAPDATALINK_H