| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

GiGaHash< std::string > Struct Template Reference

#include <GiGaHash.h>

Inheritance diagram for GiGaHash< std::string >:

[legend]
List of all members.

Public Member Functions

size_t operator() (const std::string &key) const

Detailed Description

template<>
struct GiGaHash< std::string >

Definition at line 47 of file GiGaHash.h.


Member Function Documentation

size_t GiGaHash< std::string >::operator() ( const std::string &  key  )  const [inline]

Definition at line 50 of file GiGaHash.h.

00051   {
00052     typedef std::string::const_iterator CI;
00053     size_t res  = 0 ;
00054     CI end = key.end   () ;
00055     for( CI p = key.begin(); end != p ; ++p ) { res = ( res << 1 )^*p ;}
00056     return res ;
00057   };


The documentation for this struct was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:01:17 2011 for GiGa by doxygen 1.4.7