A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
hash.h File Reference

ns3::Hasher, ns3::Hash32() and ns3::Hash64() function declarations. More...

#include "assert.h"
#include "hash-fnv.h"
#include "hash-function.h"
#include "hash-murmur3.h"
#include "ptr.h"
#include <string>
+ Include dependency graph for hash.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::Hasher
 Generic Hash function interface. More...
 

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Functions

Hasher & ns3::GetStaticHash ()
 Get a reference to the static global hasher at g_hasher.
 
uint32_t ns3::Hash32 (const char *buffer, const std::size_t size)
 Compute 32-bit hash of a byte buffer, using the default hash function.
 
uint32_t ns3::Hash32 (const std::string s)
 Compute 32-bit hash of a string, using the default hash function.
 
uint64_t ns3::Hash64 (const char *buffer, const std::size_t size)
 Compute 64-bit hash of a byte buffer, using the default hash function.
 
uint64_t ns3::Hash64 (const std::string s)
 Compute 64-bit hash of a string, using the default hash function.
 

Detailed Description

ns3::Hasher, ns3::Hash32() and ns3::Hash64() function declarations.

Definition in file hash.h.