This class is an object reference used in Athena persistent data model.
More...
#include <TPObjRef.h>
|
| | TPObjRef () |
| | Default constructor - generates and empty reference (like a NULL pointer)
|
| | TPObjRef (const typeID_t &typeID, int index) |
| | Constructor with parameters.
|
| bool | isNull () const |
| | Tests if the reference is NULL.
|
| unsigned | typeID () const |
| | returns the type ID (as integer) of the referenced object
|
| unsigned short | topLevelCnvID () const |
| | returns the ID if the top-level converter for the referenced object
|
| unsigned | index () const |
| | returns the position of the referenced object in the storage vector
|
|
| typeID_t | m_typeID |
| | the type ID of the referenced object
|
| unsigned | m_index |
| | the position of the referenced object in the storage vecto
|
This class is an object reference used in Athena persistent data model.
It replaces transient pointers and can also replace embedding and inheritance. Works only inside a single top-level persistent object or group of objects created by a given AthenaPool converter.
- Author
- Marci.nosp@m.n.No.nosp@m.wak@c.nosp@m.ern..nosp@m.ch
Definition at line 20 of file TPObjRef.h.
◆ TPObjRef() [1/2]
Default constructor - generates and empty reference (like a NULL pointer)
Definition at line 56 of file TPObjRef.h.
unsigned m_index
the position of the referenced object in the storage vecto
◆ TPObjRef() [2/2]
| TPObjRef::TPObjRef |
( |
const typeID_t & | typeID, |
|
|
int | index ) |
|
inline |
Constructor with parameters.
- Parameters
-
| [in] | typeID | type ID of the persistent object the reference is pointing to |
| [in] | index | position of the object in the storage vector in the top-level persistent object |
Definition at line 62 of file TPObjRef.h.
65 { }
unsigned index() const
returns the position of the referenced object in the storage vector
unsigned typeID() const
returns the type ID (as integer) of the referenced object
typeID_t m_typeID
the type ID of the referenced object
◆ index()
| unsigned TPObjRef::index |
( |
| ) |
const |
|
inline |
returns the position of the referenced object in the storage vector
Definition at line 77 of file TPObjRef.h.
◆ isNull()
| bool TPObjRef::isNull |
( |
| ) |
const |
|
inline |
Tests if the reference is NULL.
Definition at line 68 of file TPObjRef.h.
◆ topLevelCnvID()
| unsigned short TPObjRef::topLevelCnvID |
( |
| ) |
const |
|
inline |
returns the ID if the top-level converter for the referenced object
Definition at line 74 of file TPObjRef.h.
◆ typeID()
| unsigned TPObjRef::typeID |
( |
| ) |
const |
|
inline |
returns the type ID (as integer) of the referenced object
Definition at line 71 of file TPObjRef.h.
◆ m_index
| unsigned TPObjRef::m_index |
|
protected |
the position of the referenced object in the storage vecto
Definition at line 81 of file TPObjRef.h.
◆ m_typeID
the type ID of the referenced object
Definition at line 80 of file TPObjRef.h.
The documentation for this class was generated from the following file: