Base class holding the container independent part of ElementLinkVector. More...
#include <ElementLinkVectorBase.h>
Public Member Functions | |
ElementLinkVectorBase (const std::vector< uint32_t > &keys=std::vector< uint32_t >(), const std::vector< uint32_t > &indices=std::vector< uint32_t >()) | |
Default constructor. | |
virtual | ~ElementLinkVectorBase () |
Virtual destructor, to make vtable happy... | |
const std::vector< uint32_t > & | persKeys () const |
Get the keys/identifiers of the referenced containers. | |
void | setPersKeys (const std::vector< uint32_t > &keys) |
Set the keys/identifiers of the referenced containers. | |
const std::vector< uint32_t > & | persIndices () const |
Get the indices of the referenced objects in the containers. | |
void | setPersIndices (const std::vector< uint32_t > &indices) |
Set the indices of the referenced objects in the containers. | |
virtual bool | toTransient ()=0 |
Reset the object's internal cache. | |
Protected Attributes | |
std::vector< uint32_t > | m_persKeys |
Keys/identifiers of the referenced containers. | |
std::vector< uint32_t > | m_persIndices |
Indices of the referenced objects in the containers. | |
bool | m_isDirectIO |
Base class holding the container independent part of ElementLinkVector.
This class holds the ROOT persistifiable part of the ElementLinkVector<T> class. In the simplest form imaginable.
bool ElementLinkVectorBase::m_isDirectIO [protected] |
A transient variable signalling when direct I/O is happening
This flag is used exclusively by the ElementLinkVector<>::toTransient() function to know when it should take the persistent data stored in this object into account. That function is 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.