114 uint32_t
GetHash32 (
const char * buffer,
const std::size_t size);
129 uint64_t
GetHash64 (
const char * buffer,
const std::size_t size);
144 uint32_t
GetHash32 (
const std::string s);
158 uint64_t
GetHash64 (
const std::string s);
193 uint32_t
Hash32 (
const char * buffer,
const std::size_t size);
203 uint64_t
Hash64 (
const char * buffer,
const std::size_t size);
213 uint32_t
Hash32 (
const std::string s);
222 uint64_t
Hash64 (
const std::string s);
242 return m_impl->GetHash32 (buffer, size);
250 return m_impl->GetHash64 (buffer, size);
258 return m_impl->GetHash32 (s.c_str (), s.size ());
266 return m_impl->GetHash64 (s.c_str (), s.size ());
282 Hash32 (
const char * buffer,
const std::size_t size)
289 Hash64 (
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(void)
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(void)
Get a reference to the static global hasher at g_hasher.
ns3::Ptr smart pointer declaration and implementation.