Homepage Demos Overview Downloads Tutorials Reference
Credits

Kinematics::hashstring Struct Reference

#include <Kinematics.h>

List of all members.


Detailed Description

allows us to use the STL hash_map with strings

Definition at line 294 of file Kinematics.h.

Public Member Functions

size_t operator() (const string &s) const
 hashes a string by multiplying current total by 5, add new character


Member Function Documentation

size_t Kinematics::hashstring::operator() const string &  s  )  const [inline]
 

hashes a string by multiplying current total by 5, add new character

not my idea, this is what the STL library does for char*, i've just reimplemented it for strings

Definition at line 297 of file Kinematics.h.


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

Tekkotsu v2.2.1
Generated Tue Nov 23 16:37:47 2004 by Doxygen 1.3.9.1