A Discrete-Event Network Simulator
API
ns3::PacketSink::AddressHash Struct Reference

Hashing for the Address class. More...

Public Member Functions

size_t operator() (const Address &x) const
 operator () More...
 

Detailed Description

Hashing for the Address class.

Definition at line 158 of file packet-sink.h.

Member Function Documentation

◆ operator()()

size_t ns3::PacketSink::AddressHash::operator() ( const Address x) const
inline

operator ()

Parameters
xthe address of which calculate the hash
Returns
the hash of x

Should this method go in address.h?

It calculates the hash taking the uint32_t hash value of the IPv4 or IPv6 address. It works only for InetSocketAddresses (IPv4 version) or Inet6SocketAddresses (IPv6 version)

Definition at line 171 of file packet-sink.h.

References ns3::Inet6SocketAddress::ConvertFrom(), ns3::InetSocketAddress::ConvertFrom(), ns3::InetSocketAddress::GetIpv4(), ns3::Inet6SocketAddress::GetIpv6(), ns3::Inet6SocketAddress::IsMatchingType(), ns3::InetSocketAddress::IsMatchingType(), NS_ABORT_MSG, and two-ray-to-three-gpp-ch-calibration::x.

+ Here is the call graph for this function:

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