SNAP Library 2.4, Developer Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TStrHashF_OldGLib Class Reference

#include <hash.h>

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 1120 of file hash.h.

Member Function Documentation

static int TStrHashF_OldGLib::GetPrimHashCd ( const char *  p)
inlinestatic

Definition at line 1122 of file hash.h.

1122  {
1123  const int MulBy = 16; // even older version used MulBy=2
1124  int HashCd = 0;
1125  while (*p) { HashCd = (MulBy * HashCd) + *p++; HashCd &= 0x0FFFFFFF; }
1126  return HashCd; }
static int TStrHashF_OldGLib::GetPrimHashCd ( const TStr s)
inlinestatic

Definition at line 1132 of file hash.h.

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

Referenced by GetPrimHashCd().

1132 { return GetPrimHashCd(s.CStr()); }
static int GetPrimHashCd(const char *p)
Definition: hash.h:1122
char * CStr()
Definition: dt.h:476

Here is the call graph for this function:

Here is the caller graph for this function:

static int TStrHashF_OldGLib::GetSecHashCd ( const char *  p)
inlinestatic

Definition at line 1127 of file hash.h.

1127  {
1128  const int MulBy = 16; // even older version used MulBy=2
1129  int HashCd = 0;
1130  while (*p) { HashCd = (MulBy * HashCd) ^ *p++; HashCd &= 0x0FFFFFFF; }
1131  return HashCd; }
static int TStrHashF_OldGLib::GetSecHashCd ( const TStr s)
inlinestatic

Definition at line 1133 of file hash.h.

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

Referenced by GetSecHashCd().

1133 { return GetSecHashCd(s.CStr()); }
char * CStr()
Definition: dt.h:476
static int GetSecHashCd(const char *p)
Definition: hash.h:1127

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: