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 ());
276 Hash32 (
const char * buffer,
const std::size_t size)
283 Hash64 (
const char * buffer,
const std::size_t size)
uint32_t GetHash32(const char *buffer, const std::size_t size)
Compute 32-bit hash of a byte buffer.
Smart pointer class similar to boost::intrusive_ptr.
ns3::Hash::Implementation, ns3::Hash::Function::Hash32 and ns3::Hash::Function::Hash64 declarations...
ns3::Ptr smart pointer declaration and implementation.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
ns3::Hash::Function::Fnv1a declaration.
NS_ASSERT() and NS_ASSERT_MSG() macro definitions.
Hasher()
Constructor using the default implementation.
uint64_t Hash64(const char *buffer, const std::size_t size)
Compute 64-bit hash of a byte buffer, using the default hash function.
Hasher & clear(void)
Restore initial state.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t Hash32(const char *buffer, const std::size_t size)
Compute 32-bit hash of a byte buffer, using the default hash function.
uint64_t GetHash64(const char *buffer, const std::size_t size)
Compute 64-bit hash of a byte buffer.
Ptr< Hash::Implementation > m_impl
Hash implementation.
ns3::Hash::Function::Murmur3 declaration.
Generic Hash function interface.