Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
HashCodeUtil.h File Reference
#include <memory>
#include <string>
#include <type_traits>
#include <vector>
#include "zserio/Enums.h"
#include "zserio/FloatUtil.h"
#include "zserio/OptionalHolder.h"
#include "zserio/Types.h"

Go to the source code of this file.

Namespaces

 zserio
 

Functions

uint32_t zserio::calcHashCodeFirstTerm (uint32_t seedValue)
 
template<typename T >
std::enable_if< std::is_integral< T >::value &&(sizeof(T)<=4), uint32_t >::type zserio::calcHashCode (uint32_t seedValue, T value)
 
template<typename T >
std::enable_if< std::is_integral< T >::value &&(sizeof(T) > 4), uint32_t >::type zserio::calcHashCode (uint32_t seedValue, T value)
 
uint32_t zserio::calcHashCode (uint32_t seedValue, float value)
 
uint32_t zserio::calcHashCode (uint32_t seedValue, double value)
 
template<typename ALLOC >
uint32_t zserio::calcHashCode (uint32_t seedValue, const std::basic_string< char, std::char_traits< char >, ALLOC > &stringValue)
 
template<typename ENUM_TYPE >
std::enable_if< std::is_enum< ENUM_TYPE >::value, uint32_t >::type zserio::calcHashCode (uint32_t seedValue, ENUM_TYPE enumValue)
 
template<typename OBJECT >
std::enable_if<!std::is_enum< OBJECT >::value &&!std::is_integral< OBJECT >::value, uint32_t >::type zserio::calcHashCode (uint32_t seedValue, const OBJECT &object)
 
template<typename ARRAY_ELEMENT , typename ALLOC >
uint32_t zserio::calcHashCode (uint32_t seedValue, const std::vector< ARRAY_ELEMENT, ALLOC > &array)
 
template<typename FIELD >
uint32_t zserio::calcHashCode (uint32_t seedValue, const InplaceOptionalHolder< FIELD > &optionalHolder)
 
template<typename FIELD , typename ALLOC >
uint32_t zserio::calcHashCode (uint32_t seedValue, const HeapOptionalHolder< FIELD, ALLOC > &optionalHolder)