HashString Class Reference

List of all members.

Public Member Functions

int hash () const

Detailed Description

Definition at line 274 of file CompressPsf.C.


Member Function Documentation

int HashString::hash (  )  const [inline]

Definition at line 276 of file CompressPsf.C.

00276                    {
00277     const char* d = this->c_str();
00278     int ret=0;
00279     for (int i=0;d[i]!=0;i++) {
00280       int shift1=((5*i)%16)+0;
00281       int shift2=((6*i)%16)+8;
00282       ret+=((0xa5^d[i])<<shift2)+(d[i]<<shift1);
00283     }
00284     return ret;
00285   }


The documentation for this class was generated from the following file:
Generated on Tue Nov 21 01:17:19 2017 for NAMD by  doxygen 1.4.7