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
|
#include <dt.h>
Public Member Functions | |
TStrPool (const uint &MxBfLen=0, const uint &_GrowBy=16 *1024 *1024) | |
TStrPool (TSIn &SIn, bool LoadCompact=true) | |
TStrPool (const TStrPool &Pool) | |
~TStrPool () | |
void | Save (TSOut &SOut) const |
void | Save (const TStr &FNm) |
uint | Len () const |
uint | Size () const |
bool | Empty () const |
char * | operator() () const |
TStrPool & | operator= (const TStrPool &Pool) |
::TSize | GetMemUsed () |
uint | AddStr (const char *Str, const uint &Len) |
uint | AddStr (const char *Str) |
uint | AddStr (const TStr &Str) |
TStr | GetStr (const uint &Offset) const |
const char * | GetCStr (const uint &Offset) const |
void | Clr (bool DoDel=false) |
int | Cmp (const uint &Offset, const char *Str) const |
int | GetPrimHashCd (const uint &Offset) |
int | GetSecHashCd (const uint &Offset) |
Static Public Member Functions | |
static PStrPool | New (const uint &_MxBfLen=0, const uint &_GrowBy=16 *1024 *1024) |
static PStrPool | New (TSIn &SIn) |
static PStrPool | New (const TStr &fileName) |
static PStrPool | Load (TSIn &SIn, bool LoadCompacted=true) |
static int | GetPrimHashCd (const char *CStr) |
static int | GetSecHashCd (const char *CStr) |
static PStrPool | LoadShM (TSIn &SIn) |
Private Member Functions | |
void | Resize (const uint &_MxBfL) |
Private Attributes | |
TCRef | CRef |
uint | MxBfL |
uint | BfL |
uint | GrowBy |
char * | Bf |
Friends | |
class | TPt< TStrPool > |
Definition at line 1679 of file dt.cpp.
References AddStr(), Bf, TStr::Fmt(), IAssertR, and MxBfL.
TStrPool::TStrPool | ( | TSIn & | SIn, |
bool | LoadCompact = true |
||
) |
Definition at line 1685 of file dt.cpp.
References Bf, BfL, TStr::Fmt(), GrowBy, IAssertR, TSIn::Load(), TSIn::LoadBf(), TSIn::LoadCs(), and MxBfL.
|
inline |
Definition at line 790 of file dt.h.
References TStr::Fmt(), and IAssertR.
|
inline |
Definition at line 792 of file dt.h.
References TStr::Fmt(), and IAssertR.
Referenced by TUniChDb::Load().
Definition at line 1711 of file dt.cpp.
References Assert, Bf, BfL, IAssertR, Len(), MxBfL, and Resize().
Referenced by TUniChDb::LoadTxt(), and TStrPool().
|
inline |
Definition at line 810 of file dt.h.
References AddStr(), TStr::CStr(), and TStr::Len().
Referenced by AddStr().
|
inline |
Definition at line 819 of file dt.h.
Referenced by TUniChDb::Clr().
|
inline |
|
inline |
Definition at line 814 of file dt.h.
References Assert, TStr::CStr(), and TStr::GetNullStr().
Referenced by TUniChDb::GetCharName().
|
static |
Definition at line 1720 of file dt.cpp.
References TStrHashF_DJB::GetPrimHashCd().
|
inline |
|
static |
Definition at line 1724 of file dt.cpp.
References TStrHashF_DJB::GetSecHashCd().
|
inline |
Definition at line 812 of file dt.h.
References Assert, and TStr::GetNullStr().
|
inline |
Definition at line 797 of file dt.h.
Definition at line 829 of file dt.h.
|
inlinestatic |
Definition at line 794 of file dt.h.
Definition at line 795 of file dt.h.
Definition at line 796 of file dt.h.
References TFIn::New().
Definition at line 1700 of file dt.cpp.
References Bf, BfL, TStr::Fmt(), GrowBy, IAssertR, and MxBfL.
|
private |
Definition at line 1662 of file dt.cpp.
References Bf, TStr::Fmt(), TInt::GetMn(), GrowBy, IAssertR, and MxBfL.
Referenced by AddStr().
void TStrPool::Save | ( | TSOut & | SOut | ) | const |
Definition at line 1694 of file dt.cpp.
References Bf, BfL, GrowBy, MxBfL, TSOut::Save(), TSOut::SaveBf(), and TSOut::SaveCs().
Referenced by TUniChDb::Save().
|
inline |
Definition at line 799 of file dt.h.
References TFOut::New(), and Save().
Referenced by Save().
|
private |
Definition at line 784 of file dt.h.
Referenced by AddStr(), operator=(), Resize(), Save(), and TStrPool().
|
private |
Definition at line 783 of file dt.h.
Referenced by AddStr(), operator=(), Save(), and TStrPool().
|
private |
Definition at line 783 of file dt.h.
Referenced by operator=(), Resize(), Save(), and TStrPool().
|
private |
Definition at line 783 of file dt.h.
Referenced by AddStr(), operator=(), Resize(), Save(), and TStrPool().