ATLAS Offline Software
Loading...
Searching...
No Matches
SG_detail Namespace Reference

Functions

bool checkForRemap (IProxyDict *sg, SG::sgkey_t sgkey_in, size_t index_in, SG::sgkey_t &sgkey_out, size_t &index_out)
 See if an EL is being remapped.
template<class T>
bool checkForRemap (IProxyDict *sg, SG::sgkey_t sgkey_in, const T &, SG::sgkey_t &sgkey_out, T &)
 See if an EL is being remapped.

Function Documentation

◆ checkForRemap() [1/2]

template<class T>
bool SG_detail::checkForRemap ( IProxyDict * sg,
SG::sgkey_t sgkey_in,
const T & ,
SG::sgkey_t & sgkey_out,
T &  )
inline

See if an EL is being remapped.

Parameters
sgkey_inOriginal hashed key of the EL.
dum_inIgnored.
sgkey_out[out]New hashed key for the EL.
dum_out[out]Ignored.
Returns
True if there is a remapping; false otherwise.

This version catches the cases where the container index type isn't a size_t. We don't support changing the index in this case.

◆ checkForRemap() [2/2]

bool SG_detail::checkForRemap ( IProxyDict * sg,
SG::sgkey_t sgkey_in,
size_t index_in,
SG::sgkey_t & sgkey_out,
size_t & index_out )

See if an EL is being remapped.

Parameters
sgkey_inOriginal hashed key of the EL.
index_inOriginal index of the EL.
sgkey_out[out]New hashed key for the EL.
index_out[out]New index for the EL.
Returns
True if there is a remapping; false otherwise.

This version is for the case where the EL index is a size_t. For other index types, the the templated version below is used (which doesn't allow remapping indices).

Definition at line 31 of file ElementLink.cxx.

36{
37 return sg->tryELRemap (sgkey_in, index_in, sgkey_out, index_out);
38}
virtual bool tryELRemap(sgkey_t sgkey_in, size_t index_in, sgkey_t &sgkey_out, size_t &index_out)
Test to see if the target of an ElementLink has moved.