Generic Hash function interface. More...
Collaboration diagram for Hash Functions:Namespaces | |
| ns3::Hash | |
| Hash function implementations. | |
| ns3::Hash::Example | |
| Namespace for hasher-example. | |
| ns3::Hash::Function | |
| Hash functions. | |
Classes | |
| class | ns3::Hash::Function::Fnv1a |
| Fnv1a hash function implementation. More... | |
| class | ns3::Hash::Function::Hash32 |
| Template for Hashfunctions from 32-bit hash functions. More... | |
| class | ns3::Hash::Function::Hash64 |
| Template for Hashfunctions from 64-bit hash functions. More... | |
| class | ns3::Hasher |
| Generic Hash function interface. More... | |
| class | ns3::Hash::Implementation |
| Hash function implementation base class. More... | |
| class | ns3::Hash::Function::Murmur3 |
| Murmur3 hash function implementation. More... | |
Functions | |
| uint32_t | ns3::Hash32 (const char *buffer, const size_t size) |
| Compute 32-bit hash of a byte buffer, using the default hash function. More... | |
| uint32_t | ns3::Hash32 (const std::string s) |
| Compute 32-bit hash of a string, using the default hash function. More... | |
| uint64_t | ns3::Hash64 (const char *buffer, const size_t size) |
| Compute 64-bit hash of a byte buffer, using the default hash function. More... | |
| uint64_t | ns3::Hash64 (const std::string s) |
| Compute 64-bit hash of a string, using the default hash function. More... | |
| typedef uint32_t(* | ns3::Hash::Hash32Function_ptr )(const char *, const size_t) |
| Basic hash function typedefs. More... | |
| typedef uint64_t(* | ns3::Hash::Hash64Function_ptr )(const char *, const size_t) |
| Basic hash function typedefs. More... | |
Generic Hash function interface.
| typedef uint32_t(* ns3::Hash::Hash32Function_ptr)(const char *, const size_t) |
Basic hash function typedefs.
See Hash32Implementation<> or Hash64Implementation<>
Definition at line 104 of file hash-function.h.
| typedef uint64_t(* ns3::Hash::Hash64Function_ptr)(const char *, const size_t) |
Basic hash function typedefs.
See Hash32Implementation<> or Hash64Implementation<>
Definition at line 105 of file hash-function.h.
|
inline |
Compute 32-bit hash of a byte buffer, using the default hash function.
| [in] | buffer | pointer to the beginning of the buffer |
| [in] | size | length of the buffer, in bytes |
Definition at line 258 of file hash.h.
References ns3::Hasher::GetHash32().
Referenced by DefaultHashTestCase::DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Compute 32-bit hash of a string, using the default hash function.
| [in] | s | string to hash |
Definition at line 272 of file hash.h.
References ns3::Hasher::GetHash32().
Here is the call graph for this function:
|
inline |
Compute 64-bit hash of a byte buffer, using the default hash function.
| [in] | buffer | pointer to the beginning of the buffer |
| [in] | size | length of the buffer, in bytes |
Definition at line 265 of file hash.h.
References ns3::Hasher::GetHash64().
Referenced by DefaultHashTestCase::DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Compute 64-bit hash of a string, using the default hash function.
| [in] | s | string to hash |
Definition at line 279 of file hash.h.
References ns3::Hasher::GetHash64().
Here is the call graph for this function: