SNAP Library 3.0, Developer Reference  2016-07-20 17:56:49
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 1146 of file hash.h.

Member Function Documentation

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

Definition at line 1148 of file hash.h.

1148  {
1149  const int MulBy = 16; // even older version used MulBy=2
1150  int HashCd = 0;
1151  while (*p) { HashCd = (MulBy * HashCd) + *p++; HashCd &= 0x0FFFFFFF; }
1152  return HashCd; }
static int TStrHashF_OldGLib::GetPrimHashCd ( const TStr s)
inlinestatic

Definition at line 1158 of file hash.h.

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

Referenced by GetPrimHashCd().

1158 { return GetPrimHashCd(s.CStr()); }
static int GetPrimHashCd(const char *p)
Definition: hash.h:1148
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 1153 of file hash.h.

1153  {
1154  const int MulBy = 16; // even older version used MulBy=2
1155  int HashCd = 0;
1156  while (*p) { HashCd = (MulBy * HashCd) ^ *p++; HashCd &= 0x0FFFFFFF; }
1157  return HashCd; }
static int TStrHashF_OldGLib::GetSecHashCd ( const TStr s)
inlinestatic

Definition at line 1159 of file hash.h.

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

Referenced by GetSecHashCd().

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

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: