ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TPObjRef::typeID_t Class Reference

#include <TPObjRef.h>

Collaboration diagram for TPObjRef::typeID_t:

Public Member Functions

 typeID_t (unsigned short tlCnvID=0, unsigned short cnvID=0)
 Constructor: More...
 
unsigned short topLevelCnvID () const
 Returns the ID of the top-level TP converter. More...
 
unsigned short cnvID () const
 Returns the ID of the basic TP converter. More...
 
unsigned value () const
 Returns the type ID as an integer. More...
 
bool isNull () const
 Tests if the type is defined. More...
 

Public Attributes

unsigned short m_TLCnvID
 ID of the top-level TP converter. More...
 
unsigned short m_cnvID
 ID if the basic TP converter (inside the TL converter) More...
 

Detailed Description

This structure holds an ID of a persistent type. The ID is local to a given top level persistent object and its TL TP converter. The type ID consists of 2 numbers: the ID of a basic TP converter, and the ID of the top-level TP converter that owns this basic converter.

Definition at line 31 of file TPObjRef.h.

Constructor & Destructor Documentation

◆ typeID_t()

TPObjRef::typeID_t::typeID_t ( unsigned short  tlCnvID = 0,
unsigned short  cnvID = 0 
)
inline

Constructor:

Parameters
[in]tlCnvIDID of the top-level TP converter
[in]cnvIDID of the basic TP converter

Definition at line 36 of file TPObjRef.h.

37  : m_TLCnvID(tlCnvID), m_cnvID(cnvID) {}

Member Function Documentation

◆ cnvID()

unsigned short TPObjRef::typeID_t::cnvID ( ) const
inline

Returns the ID of the basic TP converter.

Definition at line 43 of file TPObjRef.h.

43 { return m_cnvID; }

◆ isNull()

bool TPObjRef::typeID_t::isNull ( ) const
inline

Tests if the type is defined.

Definition at line 49 of file TPObjRef.h.

49 { return !(m_TLCnvID | m_cnvID); }

◆ topLevelCnvID()

unsigned short TPObjRef::typeID_t::topLevelCnvID ( ) const
inline

Returns the ID of the top-level TP converter.

Definition at line 40 of file TPObjRef.h.

40 { return m_TLCnvID; }

◆ value()

unsigned TPObjRef::typeID_t::value ( ) const
inline

Returns the type ID as an integer.

Definition at line 46 of file TPObjRef.h.

46 { return m_TLCnvID<<16 | m_cnvID; }

Member Data Documentation

◆ m_cnvID

unsigned short TPObjRef::typeID_t::m_cnvID

ID if the basic TP converter (inside the TL converter)

Definition at line 52 of file TPObjRef.h.

◆ m_TLCnvID

unsigned short TPObjRef::typeID_t::m_TLCnvID

ID of the top-level TP converter.

Definition at line 51 of file TPObjRef.h.


The documentation for this class was generated from the following file:
TPObjRef::typeID_t::m_cnvID
unsigned short m_cnvID
ID if the basic TP converter (inside the TL converter)
Definition: TPObjRef.h:52
TPObjRef::typeID_t::m_TLCnvID
unsigned short m_TLCnvID
ID of the top-level TP converter.
Definition: TPObjRef.h:51
TPObjRef::typeID_t::cnvID
unsigned short cnvID() const
Returns the ID of the basic TP converter.
Definition: TPObjRef.h:43