Embedded Template Library  1.0
Standard hash calculations

Modules

 Common data for all hash type classes.
 

Classes

struct  etl::hash< T >
 
struct  etl::hash< bool >
 
struct  etl::hash< char >
 
struct  etl::hash< signed char >
 
struct  etl::hash< unsigned char >
 
struct  etl::hash< wchar_t >
 
struct  etl::hash< short >
 
struct  etl::hash< unsigned short >
 
struct  etl::hash< int >
 
struct  etl::hash< unsigned int >
 
struct  etl::hash< long >
 
struct  etl::hash< long long >
 
struct  etl::hash< unsigned long >
 
struct  etl::hash< unsigned long long >
 
struct  etl::hash< float >
 
struct  etl::hash< double >
 
struct  etl::hash< long double >
 
struct  etl::hash< T * >
 
class  etl::hash_exception
 

Detailed Description


Class Documentation

◆ etl::hash

struct etl::hash

template<typename T>
struct etl::hash< T >

Generic declaration for etl::hash

◆ etl::hash< bool >

struct etl::hash< bool >

Specialisation for bool.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(bool), "size_t smaller than type")
 
size_t operator() (bool v) const
 

◆ etl::hash< char >

struct etl::hash< char >

Specialisation for char.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(char), "size_t smaller than type")
 
size_t operator() (char v) const
 

◆ etl::hash< signed char >

struct etl::hash< signed char >

Specialisation for signed char.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(signed char), "size_t smaller than type")
 
size_t operator() (signed char v) const
 

◆ etl::hash< unsigned char >

struct etl::hash< unsigned char >

Specialisation for unsigned char.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(unsigned char), "size_t smaller than type")
 
size_t operator() (unsigned char v) const
 

◆ etl::hash< wchar_t >

struct etl::hash< wchar_t >

Specialisation for wchar_t.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(wchar_t), "size_t smaller than type")
 
size_t operator() (wchar_t v) const
 

◆ etl::hash< short >

struct etl::hash< short >

Specialisation for short.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(short), "size_t smaller than type")
 
size_t operator() (short v) const
 

◆ etl::hash< unsigned short >

struct etl::hash< unsigned short >

Specialisation for unsigned short.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(unsigned short), "size_t smaller than type")
 
size_t operator() (unsigned short v) const
 

◆ etl::hash< int >

struct etl::hash< int >

Specialisation for int.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(int), "size_t smaller than type")
 
size_t operator() (int v) const
 

◆ etl::hash< unsigned int >

struct etl::hash< unsigned int >

Specialisation for unsigned int.

Public Member Functions

 ETL_STATIC_ASSERT (sizeof(size_t) >=sizeof(unsigned int), "size_t smaller than type")
 
size_t operator() (unsigned int v) const
 

◆ etl::hash< long >

struct etl::hash< long >

Specialisation for long.

Public Member Functions

size_t operator() (long v) const
 

◆ etl::hash< long long >

struct etl::hash< long long >

Specialisation for long long.

Public Member Functions

size_t operator() (long long v) const
 

◆ etl::hash< unsigned long >

struct etl::hash< unsigned long >

Specialisation for unsigned long.

Public Member Functions

size_t operator() (unsigned long v) const
 

◆ etl::hash< unsigned long long >

struct etl::hash< unsigned long long >

Specialisation for unsigned long long.

Public Member Functions

size_t operator() (unsigned long long v) const
 

◆ etl::hash< float >

struct etl::hash< float >

Specialisation for float.

Public Member Functions

size_t operator() (float v) const
 

◆ etl::hash< double >

struct etl::hash< double >

Specialisation for double.

Public Member Functions

size_t operator() (double v) const
 

◆ etl::hash< long double >

struct etl::hash< long double >

Specialisation for long double.

Public Member Functions

size_t operator() (long double v) const
 

◆ etl::hash< T * >

struct etl::hash< T * >

template<typename T>
struct etl::hash< T * >

Specialisation for pointers.

Public Member Functions

size_t operator() (const T *v) const
 

◆ etl::hash_exception

class etl::hash_exception

Exception base for hashes.

Public Member Functions

 hash_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::exception
 exception (string_type reason_, string_type file_, numeric_type line_)
 Constructor.
 
string_type what () const
 
string_type file_name () const
 
numeric_type line_number () const
 

Additional Inherited Members

- Public Types inherited from etl::exception
typedef const char * string_type
 
typedef int numeric_type