|
SNAP Library 2.2, Developer Reference
2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <hash.h>
Static Public Member Functions | |
| static int | GetPrimHashCd (const TVec &Vec) |
| static int | GetSecHashCd (const TVec &Vec) |
| static int TVecHashF_OldGLib< TVec >::GetPrimHashCd | ( | const TVec & | Vec | ) | [inline, static] |
Definition at line 1168 of file hash.h.
References TVec< TVal, TSizeTy >::GetPrimHashCd(), and TVec< TVal, TSizeTy >::Len().
{
int HashCd=0;
for (int ValN=0; ValN<Vec.Len(); ValN++){
HashCd+=Vec[ValN].GetPrimHashCd();}
return abs(HashCd);
}

| static int TVecHashF_OldGLib< TVec >::GetSecHashCd | ( | const TVec & | Vec | ) | [inline, static] |
Definition at line 1174 of file hash.h.
References TVec< TVal, TSizeTy >::GetSecHashCd(), and TVec< TVal, TSizeTy >::Len().
{
int HashCd=0;
for (int ValN=0; ValN<Vec.Len(); ValN++){
HashCd+=Vec[ValN].GetSecHashCd();}
return abs(HashCd);
}
