11#include "Teuchos_Assert.hpp" 
   12#include "Teuchos_CompilerCodeTweakMacros.hpp" 
   17const int HashUtils::primeCount_ = 33;
 
   18const int HashUtils::primes_[]
 
   19= {11, 19, 37, 59, 101, 163, 271, 443, 733, 1187, 1907, 3061,
 
   20   4919, 7759, 12379, 19543, 30841, 48487, 75989,
 
   21   119089, 185971, 290347, 452027, 703657, 1093237,
 
   22   1695781, 2627993, 4067599, 6290467, 9718019,
 
   23   15000607, 23133937, 35650091};
 
   30                     "HashUtils::nextPrime() overflow");
 
   32  for (
int i=0; 
i<primeCount_; 
i++)
 
   42                     "unexpected case in HashUtils::nextPrime()");
 
   55  unsigned char *
to = 
reinterpret_cast<unsigned char *
>(&
total);
 
   57  for (
size_t i=0; 
i < 
len; 
i++){
 
 
Utilities for generating hashcodes.
 
static int getHashCode(const unsigned char *a, size_t len)
 
Smart reference counting pointer class for automatic garbage collection.
 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
 
#define TEUCHOS_UNREACHABLE_RETURN(dummyReturnVal)
Avoid warning about unreachable or missing return from function.
 
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...