SNAP Library 2.4, User 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
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 1167 of file hash.h.

Member Function Documentation

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

Definition at line 1169 of file hash.h.

1169  {
1170  int HashCd=0;
1171  for (int ValN=0; ValN<Vec.Len(); ValN++){
1172  HashCd+=Vec[ValN].GetPrimHashCd();}
1173  return abs(HashCd);
1174  }
int GetPrimHashCd() const
Returns primary hash code of the vector. Used by THash.
Definition: ds.h:930
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:535
template<class TVec >
static int TVecHashF_OldGLib< TVec >::GetSecHashCd ( const TVec Vec)
inlinestatic

Definition at line 1175 of file hash.h.

1175  {
1176  int HashCd=0;
1177  for (int ValN=0; ValN<Vec.Len(); ValN++){
1178  HashCd+=Vec[ValN].GetSecHashCd();}
1179  return abs(HashCd);
1180  }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:535
int GetSecHashCd() const
Returns secondary hash code of the vector. Used by THash.
Definition: ds.h:942

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