A Discrete-Event Network Simulator
API
ns3::Ipv4AddressHash Class Reference

Class providing an hash for IPv4 addresses. More...

#include "ipv4-address.h"

Public Member Functions

size_t operator() (const Ipv4Address &x) const
 Returns the hash of an IPv4 address. More...
 

Detailed Description

Class providing an hash for IPv4 addresses.

Definition at line 400 of file ipv4-address.h.

Member Function Documentation

◆ operator()()

size_t ns3::Ipv4AddressHash::operator() ( const Ipv4Address x) const

Returns the hash of an IPv4 address.

Parameters
xthe address
Returns
the hash

This method uses std::hash rather than class Hash as speed is more important than cryptographic robustness.

Definition at line 402 of file ipv4-address.cc.

References two-ray-to-three-gpp-ch-calibration::x.


The documentation for this class was generated from the following files: