A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::WifiTxStatsHelper::TupleHash Struct Reference

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.
 

Detailed Description

Hash function for the tuples used in unordered_maps.

Definition at line 140 of file wifi-tx-stats-helper.h.

Member Function Documentation

◆ hash_combine()

template<typename T >
void ns3::WifiTxStatsHelper::TupleHash::hash_combine ( size_t & seed,
const T & value ) const
inline

Combines two hash values into one (similar to boost::hash_combine)

Parameters
seedthe starting hash point
valuethe value to combine to the hash

Definition at line 148 of file wifi-tx-stats-helper.h.

Referenced by tuple_hash().

+ Here is the caller graph for this function:

◆ operator()()

template<typename... Args>
size_t ns3::WifiTxStatsHelper::TupleHash::operator() ( const std::tuple< Args... > & tuple) const
inline

Operator overload for calculating hash of tuple.

Parameters
tuplethe input Tuple
Returns
the hash of the tuple elements

Definition at line 179 of file wifi-tx-stats-helper.h.

References tuple_hash().

+ Here is the call graph for this function:

◆ tuple_hash()

template<typename Tuple , size_t Index = 0>
size_t ns3::WifiTxStatsHelper::TupleHash::tuple_hash ( const Tuple & tuple) const
inline

Hash function for tuples of arbitrary size.

Parameters
tuplethe input Tuple
Returns
the hash of the tuple elements

Definition at line 159 of file wifi-tx-stats-helper.h.

References hash_combine(), and tuple_hash().

Referenced by operator()(), and tuple_hash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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