ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher Struct Reference

Hash functional for keys. More...

Collaboration diagram for CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher:

Public Member Functions

size_t operator() (const val_t p) const
 Hash function from the underlying representation type. More...
 
size_t operator() (const std::string &s) const
 Hash function from a std::string. More...
 

Public Attributes

std::hash< std::string > m_hash
 Hash functional. More...
 

Detailed Description

template<class VALUE, template< class > class UPDATER>
struct CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher

Hash functional for keys.

The key can be either a std::string or the representation type used by the underlying map.

Definition at line 765 of file ConcurrentStrToValMap.h.

Member Function Documentation

◆ operator()() [1/2]

template<class VALUE , template< class > class UPDATER>
size_t CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher::operator() ( const std::string &  s) const

Hash function from a std::string.

◆ operator()() [2/2]

template<class VALUE , template< class > class UPDATER>
size_t CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher::operator() ( const val_t  p) const

Hash function from the underlying representation type.

Member Data Documentation

◆ m_hash

template<class VALUE , template< class > class UPDATER>
std::hash<std::string> CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher::m_hash

Hash functional.

Definition at line 772 of file ConcurrentStrToValMap.h.


The documentation for this struct was generated from the following file: