Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

HashT Struct Reference
[Hash Utilities]

A 64-bit hash value. More...

#include <HashUtility.h>

List of all members.

Public Methods

 HashT ()
 Construct a default hash value (0).

 HashT (uint32 x)
 Construct a specific hash value.

 HashT (uint32 b_, uint32 a_)
 Construct a specific hash value.

 HashT (const HashT &x)
 Copy constructor.

 HashT (std::string const &x)
 Hash a string.

bool operator== (uint32 x) const
 Compare this hash value for equality.

bool operator!= (uint32 x) const
 Compare this hash value for inequality.

bool operator== (HashT const &x) const
 Compare two hash values for equality.

bool operator!= (HashT const &x) const
 Compare two hash values for inequality.

HashT & operator= (std::string &x)
 Hash a string by assignment.

HashT & operator= (uint32 x)
 Assign a specific hash value.

HashT & operator= (HashT const &x)
 Assign a specific hash value.

std::string str () const
 Get a string representation of this hash.


Public Attributes

uint32 a
uint32 b


Detailed Description

A 64-bit hash value.


Constructor & Destructor Documentation

HashT::HashT   [inline]
 

Construct a default hash value (0).

HashT::HashT uint32    x [inline]
 

Construct a specific hash value.

The high 32-bits will be zero.

Parameters:
x  The low 32-bits of the hash value.

HashT::HashT uint32    b_,
uint32    a_
[inline]
 

Construct a specific hash value.

Parameters:
b_  The high 32-bits of the hash value.
a_  The low 32-bits of the hash value.

HashT::HashT const HashT &    x [inline]
 

Copy constructor.

HashT::HashT std::string const &    x [inline]
 

Hash a string.


Member Function Documentation

bool HashT::operator!= HashT const &    x const [inline]
 

Compare two hash values for inequality.

bool HashT::operator!= uint32    x const [inline]
 

Compare this hash value for inequality.

Parameters:
x  The low 32-bits of the hash value to compare to. The high 32-bits are zero.

HashT& HashT::operator= HashT const &    x [inline]
 

Assign a specific hash value.

HashT& HashT::operator= uint32    x [inline]
 

Assign a specific hash value.

Parameters:
x  The low 32-bits to assign. The high 32-bits are zeroed.

HashT& HashT::operator= std::string &    x [inline]
 

Hash a string by assignment.

bool HashT::operator== HashT const &    x const [inline]
 

Compare two hash values for equality.

bool HashT::operator== uint32    x const [inline]
 

Compare this hash value for equality.

Parameters:
x  The low 32-bits of the hash value to compare to. The high 32-bits are zero.

std::string HashT::str  
 

Get a string representation of this hash.


Member Data Documentation

uint32 HashT::a
 

uint32 HashT::b
 


The documentation for this struct was generated from the following files:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:41 2003, using Doxygen 1.2.18.

[SF.net]