Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HashDataSwitch< T > Struct Template Reference

Detailed Description

template<typename T>
struct thrill::common::HashDataSwitch< T >

Hashing helper that decides what is hashed.

Defaults to pointer to the object and sizeof(its type). Override these values for heap-allocated types. Some default overrides are provided.

Definition at line 100 of file hash.hpp.

#include <hash.hpp>

Static Public Member Functions

static const char * ptr (const T &x)
 
static size_t size (const T &)
 

Member Function Documentation

static const char* ptr ( const T x)
inlinestatic

Definition at line 101 of file hash.hpp.

References gen_data::x.

Referenced by HashCrc32Fallback< ValueType >::operator()().

static size_t size ( const T )
inlinestatic

Definition at line 103 of file hash.hpp.

Referenced by HashCrc32Fallback< ValueType >::operator()().


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