SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TVecHashF_OldGLib< TVec > Class Template Reference

#include <hash.h>

Static Public Member Functions

static int GetPrimHashCd (const TVec &Vec)
 
static int GetSecHashCd (const TVec &Vec)
 

Detailed Description

template<class TVec>
class TVecHashF_OldGLib< TVec >

Definition at line 1271 of file hash.h.

Member Function Documentation

template<class TVec >
static int TVecHashF_OldGLib< TVec >::GetPrimHashCd ( const TVec Vec)
inlinestatic

Definition at line 1273 of file hash.h.

References TVec< TVal, TSizeTy >::GetPrimHashCd(), and TVec< TVal, TSizeTy >::Len().

1273  {
1274  int HashCd=0;
1275  for (int ValN=0; ValN<Vec.Len(); ValN++){
1276  HashCd+=Vec[ValN].GetPrimHashCd();}
1277  return abs(HashCd);
1278  }
int GetPrimHashCd() const
Returns primary hash code of the vector. Used by THash.
Definition: ds.h:999
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575

Here is the call graph for this function:

template<class TVec >
static int TVecHashF_OldGLib< TVec >::GetSecHashCd ( const TVec Vec)
inlinestatic

Definition at line 1279 of file hash.h.

References TVec< TVal, TSizeTy >::GetSecHashCd(), and TVec< TVal, TSizeTy >::Len().

1279  {
1280  int HashCd=0;
1281  for (int ValN=0; ValN<Vec.Len(); ValN++){
1282  HashCd+=Vec[ValN].GetSecHashCd();}
1283  return abs(HashCd);
1284  }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int GetSecHashCd() const
Returns secondary hash code of the vector. Used by THash.
Definition: ds.h:1011

Here is the call graph for this function:


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