AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
HashFunction.h File Reference
#include <stddef.h>
#include <cstring>
#include <ratio>
#include <agx/agx.h>
#include <agx/Integer.h>
#include <agx/String.h>
#include <agx/hash.h>

Go to the source code of this file.

Classes

struct  agx::HashFn< const char * >
 
struct  agx::HashFn< Int32 >
 
struct  agx::HashFn< Int64 >
 
struct  agx::HashFn< std::pair< T1, T2 > >
 
struct  agx::HashFn< std::string >
 
struct  agx::HashFn< String >
 
struct  agx::HashFn< T * >
 
struct  agx::HashFn< UInt32 >
 
struct  agx::HashFn< UInt64 >
 
struct  agx::SpatialHasher3D< Vec3Type, Epsilon >
 Spatial hashing of 3D vector types with default grid size 1.0E-6. More...
 

Namespaces

namespace  agx
 The agx namespace contains the dynamics/math part of the AGX Dynamics API.
 

Functions

AGXCORE_EXPORT agx::UInt64 agx::buildHashKey (agx::UInt32 id1, agx::UInt32 id2)
 
template<typename T >
UInt32 agx::hash (const T &key)
 
UInt32 AGXCORE_EXPORT agx::hash (UInt32 h1, UInt32 h2)
 
UInt32 agx::hash (UInt32 x, UInt32 y, UInt32 z)
 
UInt32 agx::hash (UInt64 x, UInt64 y, UInt64 z)
 
UInt64 agx::hash64 (UInt64 x, UInt64 y, UInt64 z)
 
AGXCORE_EXPORT bool agx::hashKeyContains (agx::UInt64 key, agx::UInt32 id)
 
bool agx::hashKeyEqual (char *key1, char *key2)
 
bool agx::hashKeyEqual (const char *key1, const char *key2)
 
template<typename T1 , typename T2 >
bool agx::hashKeyEqual (const T1 &key1, const T2 &key2)
 
UInt64 agx::spatialHash (double x, double eps)
 Hash function suitable for spatial hashing with configurable grid spacing eps.
 
UInt32 agx::spatialHash (double x, double y, double z, double eps)
 
UInt64 agx::spatialHash64 (double x, double y, double z, double eps)
 
AGXCORE_EXPORT void agx::splitHashKey (agx::UInt64 key, agx::UInt32 &id1, agx::UInt32 &id2)
 
UInt64 agx::splitMix64 (UInt64 x)
 SplitMix64 pulls entropy from the high 32 bits to the low, which preserves more uniqueness performing the 64 -> 32 fold.
 
template<typename T >
UInt32 agx::stringHash (const T &key, UInt32 startValue=0)