Hash function for the tuples used in unordered_maps. More...
#include "wifi-tx-stats-helper.h"
Public Member Functions | |
template<typename T > | |
void | hash_combine (size_t &seed, const T &value) const |
Combines two hash values into one (similar to boost::hash_combine) | |
template<typename... Args> | |
size_t | operator() (const std::tuple< Args... > &tuple) const |
Operator overload for calculating hash of tuple. | |
template<typename Tuple , size_t Index = 0> | |
size_t | tuple_hash (const Tuple &tuple) const |
Hash function for tuples of arbitrary size. | |
Hash function for the tuples used in unordered_maps.
Definition at line 140 of file wifi-tx-stats-helper.h.
|
inline |
Combines two hash values into one (similar to boost::hash_combine)
seed | the starting hash point |
value | the value to combine to the hash |
Definition at line 148 of file wifi-tx-stats-helper.h.
Referenced by tuple_hash().
|
inline |
Operator overload for calculating hash of tuple.
tuple | the input Tuple |
Definition at line 179 of file wifi-tx-stats-helper.h.
References tuple_hash().
|
inline |
Hash function for tuples of arbitrary size.
tuple | the input Tuple |
Definition at line 159 of file wifi-tx-stats-helper.h.
References hash_combine(), and tuple_hash().
Referenced by operator()(), and tuple_hash().