Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
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 369 of file Kinematics.h.


Public Member Functions

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

Member Function Documentation

size_t Kinematics::hashstring::operator() ( const std::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 372 of file Kinematics.h.


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:27 2007 by Doxygen 1.5.4