proxygen
folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyHasher Struct Reference

Public Member Functions

 KeyHasher (const THash &keyHash)
 
std::size_t operator() (const Node &node) const
 
std::size_t operator() (const TKey &key) const
 

Public Attributes

THash hash
 

Detailed Description

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
struct folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyHasher

Definition at line 434 of file EvictingCacheMap.h.

Constructor & Destructor Documentation

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyHasher::KeyHasher ( const THash &  keyHash)
inline

Definition at line 435 of file EvictingCacheMap.h.

Member Function Documentation

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
std::size_t folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyHasher::operator() ( const Node node) const
inline

Definition at line 436 of file EvictingCacheMap.h.

References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::Node::pr.

436  {
437  return hash(node.pr.first);
438  }
template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
std::size_t folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyHasher::operator() ( const TKey &  key) const
inline

Definition at line 439 of file EvictingCacheMap.h.

439  {
440  return hash(key);
441  }

Member Data Documentation

template<class TKey, class TValue, class THash = std::hash<TKey>, class TKeyEqual = std::equal_to<TKey>>
THash folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::KeyHasher::hash

Definition at line 442 of file EvictingCacheMap.h.


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