|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef ATHLINKS_DATALINK_H
15 #define ATHLINKS_DATALINK_H
18 #include "AthLinks/DataLinkBase.h"
90 template <
class STORABLE>
443 #include "AthLinks/DataLink.icc"
446 #endif // not ATHLINKS_DATALINK_H
void toStorableObject(const_reference data, const EventContext &ctx)
Set the link to an object given by a reference.
char data[hepevt_bytes_allocation_ATLAS]
void toIdentifiedObject(const ID_type &dataID, IProxyDict *sg=0)
Set the link to an object given by a string key.
void toIdentifiedObject(const ID_type &dataID, const EventContext &ctx)
Set the link to an object given by a string key.
const_pointer getDataPtr() const
Return a pointer to the currently-referenced object.
const STORABLE & const_reference
pointer getDataNonConstPtr()
Return a pointer to the currently-referenced object.
const ID_type & dataID() const
Get the key that we reference, as a string.
DataLink(const_pointer pdata, IProxyDict *sg=0)
Constructor — link to a STORABLE using a transient pointer to it.
DataLink()
Default constructor — gives the equivalent of a NULL pointer.
const void * storable() const
Return a (void) pointer to the currently-referenced object.
DataLink(const_pointer pdata, const EventContext &ctx)
Constructor — link to a STORABLE using a transient pointer to it.
STORABLE value_type
Names for the referenced type and derivatives.
DataLink(sgkey_t key, const EventContext &ctx)
Constructor — link to a STORABLE using a hashed ID.
DataLink(sgkey_t key, IProxyDict *sg=0)
Constructor — link to a STORABLE using a hashed ID.
bool toTransient(const ID_type &dataID, IProxyDict *sg=0)
Finish initialization like the link as just been read from root, but with a specified key.
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Object reference supporting deferred reading from StoreGate.
Manage DataProxy reference in ElementLink/DataLink.
DataLink(sgkey_t key, const SG::DataProxyHolder &holder)
Constructor from a hashed key and a proxy holder object.
void toDefaultObject(const EventContext &ctx)
Set the link to the default object of this type.
const_pointer operator->() const
Dereference the link.
bool isValid() const
Test to see if the link is dereferencable.
DataLinkBase::ID_type ID_type
A string SG key.
uint32_t CLID
The Class ID type.
void toIdentifiedObject(sgkey_t key, const EventContext &ctx)
Set the link to an object given by a hashed key.
bool operator!() const
True if the link is not dereferencable.
const_pointer cptr() const
Dereference the link.
void toStorableObject(const_reference data, IProxyDict *sg=0)
Set the link to an object given by a reference.
void toIdentifiedObject(sgkey_t key, IProxyDict *sg=0)
Set the link to an object given by a hashed key.
DataLink(const_reference data, IProxyDict *sg=0)
Constructor — link to a STORABLE using a transient ref to it.
DataLink(const_reference data, const EventContext &ctx)
Constructor — link to a STORABLE using a transient ref to it.
void toDefaultObject(IProxyDict *sg=0)
Set the link to the default object of this type.
DataLink(const ID_type &dataID, const EventContext &ctx)
Constructor — link to a STORABLE using a string ID.
bool toTransient(const ID_type &dataID, const EventContext &ctx)
Finish initialization like the link as just been read from root, but with a specified key.
SG::DataProxyHolder::sgkey_t sgkey_t
Type of hashed keys.
bool toTransient(IProxyDict *sg=0)
Finish initialization after link has been read.
SG::DataProxyHolder::ID_type ID_type
Type of string keys.
void * storableNonConst()
Return a (void) pointer to the currently-referenced object.
DataLink(const ID_type &dataID, IProxyDict *sg=0)
Constructor — link to a STORABLE using a string ID.
sgkey_t key() const
Get the key that we reference, as a hash.
Interface for const operations on an auxiliary store.
const_reference operator*() const
Dereference the link.
Type-independent part of DataLink; holds the persistent state.
bool toTransient(const EventContext &ctx)
Finish initialization after link has been read.
const STORABLE * const_pointer
static const CLID & classID()
Return the CLID for the class that we reference.
DataLinkBase::sgkey_t sgkey_t
A hashed SG key.