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

Member Function Documentation

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

Definition at line 1201 of file hash.h.

1201  {
1202  int HashCd=0;
1203  for (int ValN=0; ValN<Vec.Len(); ValN++){
1204  HashCd+=Vec[ValN].GetPrimHashCd();}
1205  return abs(HashCd);
1206  }
int GetPrimHashCd() const
Returns primary hash code of the vector. Used by THash.
Definition: ds.h:948
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:547
template<class TVec >
static int TVecHashF_OldGLib< TVec >::GetSecHashCd ( const TVec Vec)
inlinestatic

Definition at line 1207 of file hash.h.

1207  {
1208  int HashCd=0;
1209  for (int ValN=0; ValN<Vec.Len(); ValN++){
1210  HashCd+=Vec[ValN].GetSecHashCd();}
1211  return abs(HashCd);
1212  }
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:547
int GetSecHashCd() const
Returns secondary hash code of the vector. Used by THash.
Definition: ds.h:960

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