ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolUtilities
AthenaPoolUtilities
TPObjRef.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TPObjRef_H
6
#define TPObjRef_H
7
18
19
20
class
TPObjRef
{
21
public
:
22
31
struct
typeID_t
{
36
typeID_t
(
unsigned
short
tlCnvID=0,
unsigned
short
cnvID
=0 )
37
:
m_TLCnvID
(tlCnvID),
m_cnvID
(
cnvID
) {}
38
40
unsigned
short
topLevelCnvID
()
const
{
return
m_TLCnvID
; }
41
43
unsigned
short
cnvID
()
const
{
return
m_cnvID
; }
44
46
unsigned
value
()
const
{
return
m_TLCnvID
<<16 |
m_cnvID
; }
47
49
bool
isNull
()
const
{
return
!(
m_TLCnvID
|
m_cnvID
); }
50
51
unsigned
short
m_TLCnvID
;
52
unsigned
short
m_cnvID
;
53
};
54
56
TPObjRef
() :
m_index
(0) {}
57
62
TPObjRef
(
const
typeID_t
&
typeID
,
int
index
)
63
:
m_typeID
(
typeID
),
64
m_index
(
index
)
65
{ }
66
68
bool
isNull
()
const
{
return
m_typeID
.isNull(); }
69
71
unsigned
typeID
()
const
{
return
m_typeID
.value(); }
72
74
unsigned
short
topLevelCnvID
()
const
{
return
m_typeID
.topLevelCnvID(); }
75
77
unsigned
index
()
const
{
return
m_index
; }
78
79
protected
:
80
typeID_t
m_typeID
;
81
unsigned
m_index
;
82
};
83
84
85
#endif
86
87
88
89
90
91
TPObjRef::isNull
bool isNull() const
Tests if the reference is NULL.
Definition
TPObjRef.h:68
TPObjRef::TPObjRef
TPObjRef(const typeID_t &typeID, int index)
Constructor with parameters.
Definition
TPObjRef.h:62
TPObjRef::index
unsigned index() const
returns the position of the referenced object in the storage vector
Definition
TPObjRef.h:77
TPObjRef::TPObjRef
TPObjRef()
Default constructor - generates and empty reference (like a NULL pointer).
Definition
TPObjRef.h:56
TPObjRef::m_index
unsigned m_index
the position of the referenced object in the storage vecto
Definition
TPObjRef.h:81
TPObjRef::topLevelCnvID
unsigned short topLevelCnvID() const
returns the ID if the top-level converter for the referenced object
Definition
TPObjRef.h:74
TPObjRef::typeID
unsigned typeID() const
returns the type ID (as integer) of the referenced object
Definition
TPObjRef.h:71
TPObjRef::m_typeID
typeID_t m_typeID
the type ID of the referenced object
Definition
TPObjRef.h:80
index
Definition
index.py:1
TPObjRef::typeID_t
This structure holds an ID of a persistent type.
Definition
TPObjRef.h:31
TPObjRef::typeID_t::cnvID
unsigned short cnvID() const
Returns the ID of the basic TP converter.
Definition
TPObjRef.h:43
TPObjRef::typeID_t::m_TLCnvID
unsigned short m_TLCnvID
ID of the top-level TP converter.
Definition
TPObjRef.h:51
TPObjRef::typeID_t::isNull
bool isNull() const
Tests if the type is defined.
Definition
TPObjRef.h:49
TPObjRef::typeID_t::typeID_t
typeID_t(unsigned short tlCnvID=0, unsigned short cnvID=0)
Constructor:
Definition
TPObjRef.h:36
TPObjRef::typeID_t::value
unsigned value() const
Returns the type ID as an integer.
Definition
TPObjRef.h:46
TPObjRef::typeID_t::topLevelCnvID
unsigned short topLevelCnvID() const
Returns the ID of the top-level TP converter.
Definition
TPObjRef.h:40
TPObjRef::typeID_t::m_cnvID
unsigned short m_cnvID
ID if the basic TP converter (inside the TL converter).
Definition
TPObjRef.h:52
Generated on
for ATLAS Offline Software by
1.17.0