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
PrismVolMesh< Basis >::FaceHash Struct Reference

#include <PrismVolMesh.h>

Public Member Functions

size_t operator() (const PFace &f) const
 This is the hash function. More...
 
bool operator() (const PFace &f1, const PFace &f2) 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_quarter_int = (int)(sz_int / 4)
 These are for our own use (making the hash function. More...
 
static const int top4_mask = ((~((int)0)) << sz_quarter_int << sz_quarter_int << sz_quarter_int)
 
static const int up4_mask = top4_mask ^ (~((int)0) << sz_quarter_int << sz_quarter_int)
 
static const int mid4_mask = top4_mask ^ (~((int)0) << sz_quarter_int)
 
static const int low4_mask = ~(top4_mask | mid4_mask)
 

Member Function Documentation

size_t operator() ( const PFace f) const
inline

This is the hash function.

bool operator() ( const PFace f1,
const PFace f2 
) 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 low4_mask = ~(top4_mask | mid4_mask)
static
const int mid4_mask = top4_mask ^ (~((int)0) << sz_quarter_int)
static
const size_t min_buckets = 8
static
const int sz_quarter_int = (int)(sz_int / 4)
static

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

const int top4_mask = ((~((int)0)) << sz_quarter_int << sz_quarter_int << sz_quarter_int)
static
const int up4_mask = top4_mask ^ (~((int)0) << sz_quarter_int << sz_quarter_int)
static

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