mn_hash.hpp File Reference
#include "mn_config.hpp"
#include <stdint.h>
#include "mn_def.hpp"

Go to the source code of this file.

Classes

struct  mn::hash< T >
 Default implementation of hasher. More...
 
struct  mn::hash< T * >
 
struct  mn::hash< char * >
 
struct  mn::hash< const char * >
 
struct  mn::hash< int8_t >
 
struct  mn::hash< uint8_t >
 
struct  mn::hash< int16_t >
 
struct  mn::hash< uint16_t >
 
struct  mn::hash< int32_t >
 
struct  mn::hash< uint32_t >
 
struct  mn::hash< int64_t >
 
struct  mn::hash< uint64_t >
 
struct  mn::hash_function< T >
 
struct  mn::hash_function< const char * >
 

Namespaces

 mn
 
 mn::internal
 

Typedefs

using mn::result_type = mn::size_t
 

Functions

template<typename T >
result_type mn::extract_int_key_value (const T &t)
 Default implementations, just casts to hash_value. More...
 
template<typename T >
result_type mn::internal::rjenkins_hash (const T &t)
 Implementation of hasher. Works for keys that can be converted to 32-bit integer with extract_int_key_value. More...
 
result_type mn::internal::rjenkins_hash_string (const char *strValue)
 

Detailed Description

This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ).

Author
Copyright (c) 2021 Amber-Sophia Schroeck
License
The Mini Thread Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3, or (at your option) any later version.

The Mini Thread Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Mini Thread Library; if not, see https://www.gnu.org/licenses/.