proj home

Files   Classes   Functions   Hierarchy  

stringpairhash< T > Class Template Reference

Create a hash table with stringpair, but hash on the string. More...

#include <stringpairhash.h>

Inheritance diagram for stringpairhash< T >:
Collaboration diagram for stringpairhash< T >:

List of all members.

Public Member Functions

 stringpairhash ()
 Default hash function 30 characters, 7 loops.
uintc operator() (stringpair< T > const &x) const
 Hash on the string of stringpair.

Public Attributes

stringhash sh
 String hash function.


Detailed Description

template<typename T>
class stringpairhash< T >

Create a hash table with stringpair, but hash on the string.

Definition at line 34 of file stringpairhash.h.


Constructor & Destructor Documentation

template<typename T >
stringpairhash< T >::stringpairhash (  )  [inline]

Default hash function 30 characters, 7 loops.

Definition at line 51 of file stringpairhash.h.

References stringhash::construct(), and stringpairhash< T >::sh.

00052 {
00053   sh.construct(50,7);
00054 }


Member Function Documentation

template<typename T>
uintc stringpairhash< T >::operator() ( stringpair< T > const &  x  )  const [inline]

Hash on the string of stringpair.

Definition at line 57 of file stringpairhash.h.

References stringpair< T >::id, and stringpairhash< T >::sh.

00058 {
00059   return sh(x.id);
00060 }


Member Data Documentation

template<typename T>
stringhash stringpairhash< T >::sh

String hash function.

Definition at line 39 of file stringpairhash.h.

Referenced by stringpairhash< T >::operator()(), and stringpairhash< T >::stringpairhash().


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

Generated on Fri Mar 4 00:50:18 2011 for Chelton Evans Source by  doxygen 1.5.8