SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
HexVolMesh< Basis >::EdgeHash Struct Reference

#include <HexVolMesh.h>

Public Member Functions

template<class PEDGE >
size_t operator() (const PEDGE &e) const
 This is the hash function. More...
 
template<class PEDGE >
bool operator() (const PEDGE &e1, const PEDGE &e2) const
 This should return less than rather than equal to. More...
 

Static Public Attributes

static const size_t bucket_size = 4
 These are needed by the hash_map particularly. More...
 
static const size_t min_buckets = 8
 
static const int sz_int = sizeof(int) * 8
 These are for our own use (making the hash function. More...
 
static const int sz_half_int = sizeof(int) << 2
 
static const int up_mask = ((~((int)0)) << sz_half_int)
 
static const int low_mask = (~((int)0) ^ up_mask)
 

Member Function Documentation

size_t operator() ( const PEDGE &  e) const
inline

This is the hash function.

bool operator() ( const PEDGE &  e1,
const PEDGE &  e2 
) const
inline

This should return less than rather than equal to.

Member Data Documentation

const size_t bucket_size = 4
static

These are needed by the hash_map particularly.

const int low_mask = (~((int)0) ^ up_mask)
static
const size_t min_buckets = 8
static
const int sz_half_int = sizeof(int) << 2
static
const int sz_int = sizeof(int) * 8
static

These are for our own use (making the hash function.

const int up_mask = ((~((int)0)) << sz_half_int)
static

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