Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

hash< const StructSeq *> Struct Reference

#include <structseq.h>

List of all members.

Public Methods

size_t operator() (const StructSeq *sequ) const


Member Function Documentation

size_t hash< const StructSeq *>::operator() ( const StructSeq * sequ ) const [inline]
 

Definition at line 57 of file structseq.h.

00058   {
00059     register int i;
00060     register unsigned hash;
00061     const char *s;
00062 
00063     s = sequ->getPackedSequence();
00064     
00065     for (i=0, hash = 0; *s; s++, i++ , hash *= 5 ) 
00066     {
00067       hash += *s * coeff[i];
00068     }    
00069     return ((hash) & (HASHSIZE)); /*divide through HASHSIZE for normalization */
00070   }


The documentation for this struct was generated from the following file:
Generated at Wed May 9 14:01:09 2001 for FlowReact by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001