Embedded Template Library  1.0
 All Classes Files Functions Variables Typedefs Friends Modules Pages
etl::fnv_1a_32< ENDIANNESS > Class Template Reference

#include <fnv_1.h>

Public Types

typedef uint32_t value_type
 

Public Member Functions

 fnv_1a_32 ()
 Default constructor.
 
template<typename TIterator >
 fnv_1a_32 (TIterator begin, const TIterator end)
 
void reset ()
 Resets the CRC to the initial state.
 
template<typename TValue >
void add (TValue value)
 
void add (uint8_t value)
 
template<typename TIterator >
void add (TIterator begin, const TIterator end)
 
value_type value () const
 Gets the fnv_1a_32 value.
 
template<typename TValue >
fnv_1a_32< ENDIANNESS > & operator+= (TValue value)
 
 operator value_type () const
 Conversion operator to value_type.
 

Detailed Description

template<const int ENDIANNESS = endian::little>
class etl::fnv_1a_32< ENDIANNESS >

Calculates the fnv_1a_32 hash.

Template Parameters
ENDIANNESSThe endianness of the calculation for input types larger than uint8_t. Default = endian::little.

Constructor & Destructor Documentation

template<const int ENDIANNESS = endian::little>
template<typename TIterator >
etl::fnv_1a_32< ENDIANNESS >::fnv_1a_32 ( TIterator  begin,
const TIterator  end 
)
inline

Constructor from range.

Parameters
beginStart of the range.
endEnd of the range.

Member Function Documentation

template<const int ENDIANNESS = endian::little>
template<typename TValue >
void etl::fnv_1a_32< ENDIANNESS >::add ( TValue  value)
inline
Parameters
valueThe value to add to the fnv_1a_32.
template<const int ENDIANNESS = endian::little>
void etl::fnv_1a_32< ENDIANNESS >::add ( uint8_t  value)
inline
Parameters
valueThe char to add to the fnv_1a_32.
template<const int ENDIANNESS = endian::little>
template<typename TIterator >
void etl::fnv_1a_32< ENDIANNESS >::add ( TIterator  begin,
const TIterator  end 
)
inline
Parameters
beginStart of the range.
endEnd of the range.
template<const int ENDIANNESS = endian::little>
template<typename TValue >
fnv_1a_32<ENDIANNESS>& etl::fnv_1a_32< ENDIANNESS >::operator+= ( TValue  value)
inline
Parameters
valueThe value to add to the fnv_1a_32.

The documentation for this class was generated from the following file: