SNAP Library , Developer Reference  2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TStrHashF_OldGLib Class Reference

#include <hash.h>

List of all members.

Static Public Member Functions

static int GetPrimHashCd (const char *p)
static int GetSecHashCd (const char *p)
static int GetPrimHashCd (const TStr &s)
static int GetSecHashCd (const TStr &s)

Detailed Description

Definition at line 1116 of file hash.h.


Member Function Documentation

static int TStrHashF_OldGLib::GetPrimHashCd ( const char *  p) [inline, static]

Definition at line 1118 of file hash.h.

                                                 {
    const int MulBy = 16;  // even older version used MulBy=2
    int HashCd = 0;
    while (*p) { HashCd = (MulBy * HashCd) + *p++; HashCd &= 0x0FFFFFFF; }
    return HashCd; }
static int TStrHashF_OldGLib::GetPrimHashCd ( const TStr s) [inline, static]

Definition at line 1128 of file hash.h.

References TStr::CStr(), and GetPrimHashCd().

Referenced by GetPrimHashCd().

{ return GetPrimHashCd(s.CStr()); }

Here is the call graph for this function:

Here is the caller graph for this function:

static int TStrHashF_OldGLib::GetSecHashCd ( const char *  p) [inline, static]

Definition at line 1123 of file hash.h.

                                                {
    const int MulBy = 16;  // even older version used MulBy=2
    int HashCd = 0;
    while (*p) { HashCd = (MulBy * HashCd) ^ *p++; HashCd &= 0x0FFFFFFF; }
    return HashCd; }
static int TStrHashF_OldGLib::GetSecHashCd ( const TStr s) [inline, static]

Definition at line 1129 of file hash.h.

References TStr::CStr(), and GetSecHashCd().

Referenced by GetSecHashCd().

{ return GetSecHashCd(s.CStr()); }

Here is the call graph for this function:

Here is the caller graph for this function:


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