ATLAS Offline Software
|
This class provides a persistent form for the TransientAddress. More...
#include <DataHeader.h>
Public Types | |
using | sgkey_t = SG::sgkey_t |
Public Member Functions | |
DataHeaderElement () | |
Default Constructor. More... | |
DataHeaderElement (const DataHeaderElement &rhs) | |
Copy Constructor. More... | |
DataHeaderElement (const SG::TransientAddress *sgAddress, IOpaqueAddress *tokAddress, const std::string &pTag) | |
Constructor. More... | |
DataHeaderElement (const SG::DataProxy *proxy, IOpaqueAddress *tokAddress, const std::string &pTag) | |
Constructor. More... | |
DataHeaderElement (const CLID classID, const std::string &key, const Token *token) | |
Constructor. More... | |
virtual | ~DataHeaderElement () |
Destructor. More... | |
DataHeaderElement & | operator= (const DataHeaderElement &rhs) |
Assignment Operator. More... | |
CLID | getPrimaryClassID () const |
const std::set< CLID > | getClassIDs () const |
const std::string & | getKey () const |
const std::set< std::string > & | getAlias () const |
const Token * | getToken () const |
long | getStorageType () const |
const std::vector< sgkey_t > & | getHashes () const |
SG::TransientAddress * | getAddress (unsigned long contextId=0) const |
SG::TransientAddress * | getAddress (const std::string &key, unsigned long contextId=0) const |
void | addHash (IStringPool *pool) |
Add new entry to hash map. More... | |
void | dump (std::ostream &ostr) const |
Private Member Functions | |
DataHeaderElement (CLID clid, const std::string &name, const std::vector< CLID > &tClids, std::set< std::string > &&alias, IOpaqueAddress *tadAddress, IOpaqueAddress *tokAddress, const std::string &pTag) | |
Internal constructor. More... | |
Private Attributes | |
CLID | m_pClid |
primary ClassID. More... | |
std::set< CLID > | m_clids |
set of unsigned long to store ClassID's for symlinked container. More... | |
std::string | m_key |
string with StoreGate key. More... | |
std::set< std::string > | m_alias |
set of StoreGate alias string. More... | |
const Token * | m_token |
pointer to transient address More... | |
bool | m_ownToken |
std::vector< sgkey_t > | m_hashes |
hash table for ElementLink host container keys. More... | |
Friends | |
class | DataHeaderElementCnv_p3 |
class | DataHeaderElementCnv_p4 |
class | DataHeaderElementCnv_p5 |
class | DataHeaderCnv_p6 |
This class provides a persistent form for the TransientAddress.
Definition at line 36 of file DataHeader.h.
Definition at line 38 of file DataHeader.h.
DataHeaderElement::DataHeaderElement | ( | ) |
Default Constructor.
Definition at line 18 of file DataHeader.cxx.
DataHeaderElement::DataHeaderElement | ( | const DataHeaderElement & | rhs | ) |
Copy Constructor.
Definition at line 21 of file DataHeader.cxx.
DataHeaderElement::DataHeaderElement | ( | const SG::TransientAddress * | sgAddress, |
IOpaqueAddress * | tokAddress, | ||
const std::string & | pTag | ||
) |
Constructor.
sgAddress | [IN] pointer to TransientAddress for which a DataHeaderElement is created. |
pTag | [IN] string used as key element in DataHeader (SG key for DataObjects). |
Definition at line 33 of file DataHeader.cxx.
DataHeaderElement::DataHeaderElement | ( | const SG::DataProxy * | proxy, |
IOpaqueAddress * | tokAddress, | ||
const std::string & | pTag | ||
) |
Constructor.
proxy | [IN] pointer to DataProxy for which a DataHeaderElement is created. |
pTag | [IN] string used as key element in DataHeader (SG key for DataObjects). |
Definition at line 44 of file DataHeader.cxx.
DataHeaderElement::DataHeaderElement | ( | const CLID | classID, |
const std::string & | key, | ||
const Token * | token | ||
) |
Constructor.
classID | [IN] Primary ClassID of the DataObject for which a DataHeaderElement is created. |
key | [IN] SG Key of the DataObject for which a DataHeaderElement is created. |
token | [IN] Token of the DataObject for which a DataHeaderElement is created. |
Definition at line 88 of file DataHeader.cxx.
|
virtual |
Destructor.
Definition at line 93 of file DataHeader.cxx.
|
private |
void DataHeaderElement::addHash | ( | IStringPool * | pool | ) |
void DataHeaderElement::dump | ( | std::ostream & | ostr | ) | const |
Definition at line 176 of file DataHeader.cxx.
SG::TransientAddress * DataHeaderElement::getAddress | ( | const std::string & | key, |
unsigned long | contextId = 0 |
||
) | const |
Definition at line 162 of file DataHeader.cxx.
SG::TransientAddress * DataHeaderElement::getAddress | ( | unsigned long | contextId = 0 | ) | const |
Definition at line 158 of file DataHeader.cxx.
const std::set< std::string > & DataHeaderElement::getAlias | ( | ) | const |
Definition at line 131 of file DataHeader.cxx.
Definition at line 121 of file DataHeader.cxx.
const std::vector< DataHeaderElement::sgkey_t > & DataHeaderElement::getHashes | ( | ) | const |
Definition at line 144 of file DataHeader.cxx.
const std::string & DataHeaderElement::getKey | ( | ) | const |
Definition at line 127 of file DataHeader.cxx.
CLID DataHeaderElement::getPrimaryClassID | ( | ) | const |
Definition at line 114 of file DataHeader.cxx.
long DataHeaderElement::getStorageType | ( | ) | const |
Definition at line 139 of file DataHeader.cxx.
Definition at line 135 of file DataHeader.cxx.
DataHeaderElement & DataHeaderElement::operator= | ( | const DataHeaderElement & | rhs | ) |
|
friend |
Definition at line 96 of file DataHeader.h.
|
friend |
Definition at line 93 of file DataHeader.h.
|
friend |
Definition at line 94 of file DataHeader.h.
|
friend |
Definition at line 95 of file DataHeader.h.
|
private |
set of StoreGate alias string.
Definition at line 113 of file DataHeader.h.
|
private |
set of unsigned long to store ClassID's for symlinked container.
Definition at line 109 of file DataHeader.h.
|
private |
hash table for ElementLink host container keys.
Definition at line 118 of file DataHeader.h.
|
private |
string with StoreGate key.
Definition at line 111 of file DataHeader.h.
|
private |
Definition at line 116 of file DataHeader.h.
|
private |
primary ClassID.
Definition at line 107 of file DataHeader.h.
pointer to transient address
Definition at line 115 of file DataHeader.h.