128 uint64_t
GetHash64(
const char* buffer,
const std::size_t size);
201uint64_t
Hash64(
const char* buffer,
const std::size_t size);
220uint64_t
Hash64(
const std::string s);
239 return m_impl->GetHash32(buffer, size);
246 return m_impl->GetHash64(buffer, size);
253 return m_impl->GetHash32(s.c_str(), s.size());
260 return m_impl->GetHash64(s.c_str(), s.size());
274Hash32(
const char* buffer,
const std::size_t size)
280Hash64(
const char* buffer,
const std::size_t size)
NS_ASSERT() and NS_ASSERT_MSG() macro definitions.
Generic Hash function interface.
Hasher()
Constructor using the default implementation.
Ptr< Hash::Implementation > m_impl
Hash implementation.
uint32_t GetHash32(const char *buffer, const std::size_t size)
Compute 32-bit hash of a byte buffer.
uint64_t GetHash64(const char *buffer, const std::size_t size)
Compute 64-bit hash of a byte buffer.
Hasher & clear()
Restore initial state.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
uint64_t Hash64(const char *buffer, const std::size_t size)
Compute 64-bit hash of a byte buffer, using the default hash function.
uint32_t Hash32(const char *buffer, const std::size_t size)
Compute 32-bit hash of a byte buffer, using the default hash function.
ns3::Hash::Function::Fnv1a declaration.
ns3::Hash::Implementation, ns3::Hash::Function::Hash32 and ns3::Hash::Function::Hash64 declarations.
ns3::Hash::Function::Murmur3 declaration.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Hasher & GetStaticHash()
Get a reference to the static global hasher at g_hasher.
ns3::Ptr smart pointer declaration and implementation.