A base class holding the object independent part of DataLink. More...
#include <DataLinkBase.h>
Public Member Functions | |
DataLinkBase (uint32_t key=0) | |
Default constructor. | |
virtual | ~DataLinkBase () |
Destructor. | |
uint32_t | persKey () const |
Get the key/identifier of the referenced container. | |
void | setPersKey (uint32_t key) |
Set the key/identifier of the referenced container. | |
bool | isDefault () const |
Test if the link is in the default state. | |
void | clear () |
Clear the link (make it null). | |
virtual bool | toTransient ()=0 |
Reset the object's internal cache. | |
Protected Attributes | |
uint32_t | m_persKey |
Key/identifier of the referenced object. | |
bool | m_isDirectIO |
A base class holding the object independent part of DataLink.
To implement efficient ROOT I/O for DataLink<T> classes, they all store their persistent information in this common base class, and DataLink<T> just holds transient variables.
bool DataLinkBase::m_isDirectIO [protected] |
A transient variable signalling when direct I/O is happening
This flag is used exclusively by the DataLink<>::toTransient() function to know when it should take the persistent data stored in this object into account. That function may be called in normal P->T conversions as well, in which case using the data from this class would just reset the object to its default state.