|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef ATHLINKS_DATALINKBASE_H
14 #define ATHLINKS_DATALINKBASE_H
153 const EventContext& ctx);
353 #endif // not ATHLINKS_DATALINKBASE_H
SG::DataProxyHolder::const_pointer_t const_pointer_t
SG::DataProxyHolder m_proxy
SG proxy for this link.
bool toPersistentNoRemap()
Prepare this link for writing.
void clear()
Clear the link (make it null).
DataLinkBase()
Default constructor.
bool toTransient(const ID_type &dataID, CLID link_clid, IProxyDict *sg=0)
Finish initialization like the link as just been read from root, but with a specified key.
Manage DataProxy reference in ElementLink/DataLink.
SG::DataProxy * proxy(bool nothrow=false) const
Return the DataProxy for this link.
const ID_type & dataID() const
Return the SG key that we reference, as a string.
bool toTransient(const ID_type &dataID, CLID link_clid, const EventContext &ctx)
Finish initialization like the link as just been read from root, but with a specified key.
sgkey_t m_persKey
The hashed key for this link.
SG::sgkey_t sgkey_t
Type of hashed keys.
Base class for ElementLinks to vectors of pointers.
Generic base class for ElementLinks.
SG::DataProxyHolder::castfn_t castfn_t
Function casting from a SG::DataProxy to a pointer.
Manage DataProxy reference in ElementLink/DataLink.
std::string ID_type
Type of string keys.
DataProxy provides the registry services for StoreGate.
sgkey_t key() const
Return the SG key that we reference, as a hash.
DataLinkBase(sgkey_t key, const SG::DataProxyHolder &holder)
Constructor from a hashed key and a proxy holder object.
uint32_t CLID
The Class ID type.
DataLinkBase(sgkey_t key, CLID link_clid, IProxyDict *sg)
Constructor from a hashed key.
void toStorableObject(const_pointer_t obj, CLID clid_in, IProxyDict *sg)
Set the link to an object given by a pointer.
bool isDefault() const
Test to see if we're in the default state.
DataLinkBase(const ID_type &dataID, CLID link_clid, IProxyDict *sg)
Constructor from a string key.
void * castfn_t(SG::DataProxy *)
Function casting from a SG::DataProxy to a pointer.
void throwInvalidLink() const
Throw a ExcInvalidLink exception for this link.
DataLinkBase(const_pointer_t obj, CLID link_clid, IProxyDict *sg)
Constructor from pointer to object.
void * storableBase(castfn_t *castfn, const CLID &clid, bool isConst) const
Return a pointer to the currently-referenced object.
Exceptions that can be thrown from AthLinks.
SG::DataProxyHolder::pointer_t pointer_t
SG::DataProxyHolder::sgkey_t sgkey_t
Type of hashed keys.
SG::DataProxyHolder::ID_type ID_type
Type of string keys.
const void * const_pointer_t
friend class DataLinkBase_test
For component testing.
bool toTransient(IProxyDict *sg=0)
Finish initialization after link has been read.
IProxyDict * source() const
Return the data source for this reference.
bool operator==(const DataLinkBase &other) const
Compare for equality.
bool operator!=(const DataLinkBase &other) const
Compare for inequality.
void * pointer_t
Generic pointer type.
bool toPersistent()
Prepare this link for writing.
void toIdentifiedObject(const ID_type &dataID, CLID clid, IProxyDict *sg)
Set the link to an object given by a string key.
Type-independent part of DataLink; holds the persistent state.
bool toTransient(const EventContext &ctx)
Finish initialization after link has been read.
void toIdentifiedObject(sgkey_t key, CLID clid, IProxyDict *sg)
Set the link to an object given by a hashed key.