ATLAS Offline Software
Functions
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. More...
 
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. More...
 

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 
)
inline

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).