|
SNAP Library 4.1, User Reference
2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <hash.h>
Public Member Functions | |
| TBigStrPool (TSize MxBfLen=0, uint _GrowBy=16 *1024 *1024) | |
| TBigStrPool (TSIn &SIn, bool LoadCompact=true) | |
| TBigStrPool (const TBigStrPool &Pool) | |
| ~TBigStrPool () | |
| 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) |
| ::TSize | GetMemUsed () |
| 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 |
| int | GetPrimHashCd (const int &StrId) |
| int | GetSecHashCd (const int &StrId) |
Static Public Member Functions | |
| 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) |
| static PBigStrPool | LoadShM (TShMIn &ShMIn, bool LoadCompact=true) |
| Load the string pool with the buffer backed by shared memory. More... | |
| static int | GetPrimHashCd (const char *CStr) |
| static int | GetSecHashCd (const char *CStr) |
Private Member Functions | |
| void | Resize (TSize _MxBfL) |
| void | LoadPoolShM (TShMIn &ShMIn, bool LoadCompact=true) |
Private Attributes | |
| TCRef | CRef |
| TSize | MxBfL |
| TSize | BfL |
| uint | GrowBy |
| char * | Bf |
| TVec< TSize > | IdOffV |
| bool | IsShM |
Friends | |
| class | TPt< TBigStrPool > |
| TBigStrPool::TBigStrPool | ( | TSIn & | SIn, |
| bool | LoadCompact = true |
||
| ) |
|
inline |
| int TBigStrPool::AddStr | ( | const char * | Str, |
| uint | Len | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 772 of file hash.h.
|
inlinestatic |
Definition at line 731 of file hash.h.
|
private |
Definition at line 48 of file hash.cpp.
|
inlinestatic |
Load the string pool with the buffer backed by shared memory.
Definition at line 733 of file hash.h.
|
inlinestatic |
Definition at line 728 of file hash.h.
|
inlinestatic |
Definition at line 729 of file hash.h.
|
inlinestatic |
Definition at line 730 of file hash.h.
| TBigStrPool & TBigStrPool::operator= | ( | const TBigStrPool & | Pool | ) |
|
friend |