CrystalSpace

Public API Reference

csutil/hashcomputer.h File Reference

Hash computation functions and templates. More...

Go to the source code of this file.

Classes

class  csHashComputer< T >
 Template for hash value computing. More...
class  csHashComputer< const char * >
 csHashComputer<> specialization for strings that uses csHashCompute(). More...
class  csHashComputer< T * >
 csHashComputer<> specialization for an integral type. More...
class  csHashComputerIntegral< T >
 Template for hash value computing, suitable for integral types and types that can be casted to such. More...
class  csHashComputerString< T >
 Template that can be used as a base class for hash computers for string types (must support cast to const char*). More...
class  csHashComputerStruct< T >
 Template that can be used as a base class for hash computers for POD structs. More...
struct  CS::HashFunction< T >
 Unary function for computing a hash. More...

Namespaces

namespace  CS
 

Main namespace for CrystalSpace.


namespace  CS::Utility
 

Assorted utility functions and classes that doesn't belong anywhere else.


Functions

unsigned int csHashCompute (char const *, size_t length)
 Compute a hash key for a string of a given length.
unsigned int csHashCompute (char const *)
 Compute a hash key for a null-terminated string.
static void CS::HashCombine (uint &hash, uint nextHash)
 Combine two hash values into one.
template<typename T >
static uint CS::HashCompute (const T &val)
 Convenience wrapper for csHashComputer<T>::ComputeHash().

Detailed Description

Hash computation functions and templates.

Definition in file hashcomputer.h.


Generated for Crystal Space 2.1 by doxygen 1.6.1