5#ifndef ATHLINKS_ELEMENTLINKBASE_H
6#define ATHLINKS_ELEMENTLINKBASE_H
27 static constexpr uint32_t
INVALID =
static_cast<uint32_t
> (-1);
Base class for ElementLinks to vectors of pointers.
bool isDefault() const
Is the link in the default state.
bool m_isDirectIO
A transient variable signalling when direct I/O is happening.
uint32_t persIndex() const
Get the index of the referenced object in the container.
sgkey_t key() const
Return the SG key that we reference, as a hash.
stored_index_type m_persIndex
The index of the element within the container for this link.
uint32_t persKey() const
Get the key/identifier of the referenced container.
ElementLinkBase()
Default constructor.
static const uint32_t INVALID
Value to mark an invalid index.
void setPersIndex(uint32_t index)
Set the index of the referenced object in the container.
SG::sgkey_t m_persKey
The hashed key for this link.
virtual bool toTransient()=0
Reset the object's internal cache.
void setPersKey(uint32_t key)
Set the key/identifier of the referenced container.
virtual ~ElementLinkBase()
Destructor.