SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
hash.h File Reference

Go to the source code of this file.

Classes

class  THashKeyDat< TKey, TDat >
class  THashKeyDatI< TKey, TDat >
class  TDefaultHashFunc< TKey >
class  THash< TKey, TDat, THashFunc >
class  THash< TKey, TDat, THashFunc >::THashKeyDatCmp
class  PHash< TKey, TDat >
class  TStrHash< TDat, TStringPool, THashFunc >
class  TCache< TKey, TDat, THashFunc >
class  TStrHashF_OldGLib
class  TStrHashF_Md5
class  TStrHashF_DJB

Typedefs

typedef THash< TCh, TCh > TChChH
typedef THash< TChTr, TInt > TChTrIntH
typedef THash< TInt, TInt > TIntH
typedef THash< TUInt64, TInt > TUInt64H
typedef THash< TInt, TBool > TIntBoolH
typedef THash< TInt, TInt > TIntIntH
typedef THash< TInt, TUInt64 > TIntUInt64H
typedef THash< TInt, TIntFltPr > TIntIntFltPrH
typedef THash< TInt, TIntV > TIntIntVH
typedef THash< TInt, TIntH > TIntIntHH
typedef THash< TInt, TFlt > TIntFltH
typedef THash< TInt, TFltPr > TIntFltPrH
typedef THash< TInt, TFltTr > TIntFltTrH
typedef THash< TInt, TFltV > TIntFltVH
typedef THash< TInt, TStr > TIntStrH
typedef THash< TInt, TStrV > TIntStrVH
typedef THash< TInt, TIntPr > TIntIntPrH
typedef THash< TInt, TIntPrV > TIntIntPrVH
typedef THash< TUInt64, TStrV > TUInt64StrVH
typedef THash< TIntPr, TInt > TIntPrIntH
typedef THash< TIntPr, TIntV > TIntPrIntVH
typedef THash< TIntPr, TIntPrV > TIntPrIntPrVH
typedef THash< TIntTr, TInt > TIntTrIntH
typedef THash< TIntV, TInt > TIntVIntH
typedef THash< TUInt, TUInt > TUIntH
typedef THash< TIntPr, TFlt > TIntPrFltH
typedef THash< TIntTr, TFlt > TIntTrFltH
typedef THash< TIntPr, TStr > TIntPrStrH
typedef THash< TIntPr, TStrV > TIntPrStrVH
typedef THash< TIntStrPr, TInt > TIntStrPrIntH
typedef THash< TFlt, TFlt > TFltFltH
typedef THash< TStr, TInt > TStrH
typedef THash< TStr, TBool > TStrBoolH
typedef THash< TStr, TInt > TStrIntH
typedef THash< TStr, TIntPr > TStrIntPrH
typedef THash< TStr, TIntV > TStrIntVH
typedef THash< TStr, TUInt64V > TStrUInt64VH
typedef THash< TStr, TIntPrV > TStrIntPrVH
typedef THash< TStr, TFlt > TStrFltH
typedef THash< TStr, TFltV > TStrFltVH
typedef THash< TStr, TStr > TStrStrH
typedef THash< TStr, TStrPr > TStrStrPrH
typedef THash< TStr, TStrV > TStrStrVH
typedef THash< TStr, TStrPrV > TStrStrPrVH
typedef THash< TStr, TStrKdV > TStrStrKdVH
typedef THash< TStr, TIntFltPr > TStrIntFltPrH
typedef THash< TStr, TStrIntPrV > TStrStrIntPrVH
typedef THash< TStr, TStrIntKdV > TStrStrIntKdVH
typedef THash< TDbStr, TInt > TDbStrIntH
typedef THash< TDbStr, TStr > TDbStrStrH
typedef THash< TStrPr, TBool > TStrPrBoolH
typedef THash< TStrPr, TInt > TStrPrIntH
typedef THash< TStrPr, TFlt > TStrPrFltH
typedef THash< TStrPr, TStr > TStrPrStrH
typedef THash< TStrPr, TStrV > TStrPrStrVH
typedef THash< TStrTr, TInt > TStrTrIntH
typedef THash< TStrIntPr, TInt > TStrIntPrIntH
typedef THash< TStrV, TInt > TStrVH
typedef THash< TStrV, TInt > TStrVIntH
typedef THash< TStrV, TIntV > TStrVIntVH
typedef THash< TStrV, TStr > TStrVStrH
typedef THash< TStrV, TStrV > TStrVStrVH
typedef TStrHash< TInt > TStrSH
typedef TStrHash< TInt > TStrIntSH
typedef TStrHash< TIntV > TStrToIntVSH

Functions

 TBigStrPool (TSize MxBfLen=0, uint _GrowBy=16 *1024 *1024)
 TBigStrPool (TSIn &SIn, bool LoadCompact=true)
 TBigStrPool (const TBigStrPool &Pool)
 ~TBigStrPool ()
static PBigStrPool New (TSize _MxBfLen=0, uint _GrowBy=16 *1024 *1024)
static PBigStrPool New (TSIn &SIn)
static PBigStrPool New (const TStr &fileName)
static PBigStrPool Load (TSIn &SIn, bool LoadCompacted=true)
void Save (TSOut &SOut) const
void Save (const TStr &fileName)
int GetStrs () const
TSize Len () const
TSize Size () const
bool Empty () const
char * operator() () const
TBigStrPool & operator= (const TBigStrPool &Pool)
int AddStr (const char *Str, uint Len)
int AddStr (const char *Str)
int AddStr (const TStr &Str)
TStr GetStr (const int &StrId) const
const char * GetCStr (const int &StrId) const
TStr GetStrFromOffset (const TSize &Offset) const
const char * GetCStrFromOffset (const TSize &Offset) const
void Clr (bool DoDel=false)
int Cmp (const int &StrId, const char *Str) const
static int GetPrimHashCd (const char *CStr)
static int GetSecHashCd (const char *CStr)
int GetPrimHashCd (const int &StrId)
int GetSecHashCd (const int &StrId)

Variables

ClassTP(TBigStrPool,
PBigStrPool) private uint 
GrowBy
char * Bf
TVec< TSize > IdOffV

Typedef Documentation

typedef THash<TCh, TCh> TChChH
typedef THash<TFlt, TFlt> TFltFltH
typedef THash<TInt, TFlt> TIntFltH
typedef THash<TInt, TInt> TIntH
typedef THash<TInt, TInt> TIntIntH
typedef THash< TIntPr, TInt > TIntPrIntH
typedef THash<TInt, TStr> TIntStrH
typedef THash<TStr, TFlt> TStrFltH
typedef THash<TStr, TInt> TStrH
typedef THash<TStr, TInt> TStrIntH
typedef TStrHash<TInt> TStrSH
typedef THash<TStr, TStr> TStrStrH
typedef THash<TStrV, TInt> TStrVH
typedef THash<TUInt, TUInt> TUIntH

Function Documentation

int AddStr ( const char *  Str,
uint  Len 
)
int AddStr ( const char *  Str)
int AddStr ( const TStr &  Str)
void Clr ( bool  DoDel = false)
int Cmp ( const int &  StrId,
const char *  Str 
) const
bool Empty ( ) const
const char* GetCStr ( const int &  StrId) const
const char* GetCStrFromOffset ( const TSize &  Offset) const
static int GetPrimHashCd ( const char *  CStr) [static]
int GetPrimHashCd ( const int &  StrId)
static int GetSecHashCd ( const char *  CStr) [static]
int GetSecHashCd ( const int &  StrId)
TStr GetStr ( const int &  StrId) const
TStr GetStrFromOffset ( const TSize &  Offset) const
int GetStrs ( ) const
TSize Len ( ) const
static PBigStrPool Load ( TSIn &  SIn,
bool  LoadCompacted = true 
) [static]
static PBigStrPool New ( TSize  _MxBfLen = 0,
uint  _GrowBy = 16*1024*1024 
) [static]
static PBigStrPool New ( TSIn &  SIn) [static]
static PBigStrPool New ( const TStr &  fileName) [static]
char* operator() ( ) const
TBigStrPool& operator= ( const TBigStrPool &  Pool)
void Save ( TSOut &  SOut) const
void Save ( const TStr &  fileName)
TSize Size ( ) const
TBigStrPool::TBigStrPool ( TSize  MxBfLen = 0,
uint  _GrowBy = 16*1024*1024 
)
TBigStrPool::TBigStrPool ( TSIn &  SIn,
bool  LoadCompact = true 
)
TBigStrPool ( const TBigStrPool &  Pool)

Variable Documentation

char* Bf
ClassTP (TBigStrPool, PBigStrPool) private uint GrowBy