TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HashTrait.h File Reference
#include "G3D/platform.h"
#include "G3D/Crypto.h"
#include "G3D/g3dmath.h"
#include "G3D/uint128.h"
#include <typeinfo>
#include <stdint.h>
+ Include dependency graph for HashTrait.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HashTrait< T >
 
struct  HashTrait< T * >
 
struct  HashTrait< std::type_info *const >
 
struct  HashTrait< G3D::int16 >
 
struct  HashTrait< G3D::uint16 >
 
struct  HashTrait< G3D::int32 >
 
struct  HashTrait< G3D::uint32 >
 
struct  HashTrait< G3D::uint64 >
 
struct  HashTrait< G3D::int64 >
 
struct  HashTrait< std::string >
 
struct  HashTrait< G3D::uint128 >
 

Namespaces

 G3D
 

Macros

#define get16bits(d)
 

Functions

uint32_t G3D::superFastHash (const void *_data, size_t numBytes)
 A hash function that is faster than CRC32 for arbitrary long strings [From] http://www.azillionmonkeys.com/qed/hash.html by Paul Hsieh. More...
 
uint32_t G3D::wangHash6432Shift (int64 key)
 

Detailed Description

Morgan McGuire, http://graphics.cs.williams.edu 2008-10-01 2011-06-09

Copyright 2000-2012, Morgan McGuire. All rights reserved.

Macro Definition Documentation

#define get16bits (   d)
Value:
((((uint32_t)(((const uint8_t *)(d))[1])) << 8)\
+(uint32_t)(((const uint8_t *)(d))[0]) )
unsigned int uint32_t
Definition: stdint.h:80
unsigned char uint8_t
Definition: stdint.h:78