Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Related Functions | List of all members
Teuchos::HashUtils Class Reference

Utilities for generating hashcodes. More...

#include <Teuchos_HashUtils.hpp>

Related Functions

(Note that these are not member functions.)

template<class T >
int hashCode (const T &x)
 Standard interface for getting the hash code of an object. More...
 
template<>
int hashCode (const int &x)
 Get the hash code of an int. More...
 
template<>
int hashCode (const double &x)
 Get the hash code of a double. More...
 
template<>
int hashCode (const bool &x)
 Get the hash code of a bool. More...
 
template<>
int hashCode (const long long &x)
 Get the hash code of a long long. More...
 
template<>
int hashCode (const long &x)
 Get the hash code of a long. More...
 
template<>
int hashCode (const std::string &x)
 Get the hash code of a std::string. More...
 

Detailed Description

Utilities for generating hashcodes.

Definition at line 60 of file Teuchos_HashUtils.hpp.

Friends And Related Function Documentation

template<class T >
int hashCode ( const T &  x)
related

Standard interface for getting the hash code of an object.

int hashCode ( const int &  x)
related

Get the hash code of an int.

Definition at line 87 of file Teuchos_HashUtils.hpp.

int hashCode ( const double &  x)
related

Get the hash code of a double.

Definition at line 95 of file Teuchos_HashUtils.hpp.

int hashCode ( const bool &  x)
related

Get the hash code of a bool.

Definition at line 103 of file Teuchos_HashUtils.hpp.

int hashCode ( const long long &  x)
related

Get the hash code of a long long.

Definition at line 111 of file Teuchos_HashUtils.hpp.

int hashCode ( const long &  x)
related

Get the hash code of a long.

Definition at line 119 of file Teuchos_HashUtils.hpp.

int hashCode ( const std::string &  x)
related

Get the hash code of a std::string.

Definition at line 127 of file Teuchos_HashUtils.hpp.


The documentation for this class was generated from the following files: