DataLinkBase Class Reference

A base class holding the object independent part of DataLink. More...

#include <DataLinkBase.h>

Inheritance diagram for DataLinkBase:
DataLink< STORABLE >

List of all members.

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

Detailed Description

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.

Author:
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
602641
Date
2014-06-19 15:05:08 +0200 (Thu, 19 Jun 2014)

Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1