SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <dt.h>
Public Member Functions | |
TStrPool64 (::TSize _MxBfL=0,::TSize _GrowBy=16 *1024 *1024) | |
TStrPool64 (const TStrPool64 &StrPool) | |
TStrPool64 (TSIn &SIn, bool LoadCompact=true) | |
~TStrPool64 () | |
void | Save (TSOut &SOut) const |
TStrPool64 & | operator= (const TStrPool64 &StrPool) |
uint64 | GetMemUsed () const |
bool | Empty () const |
uint64 | Len () const |
uint64 | Reserved () const |
void | Clr (bool DoDel=false) |
int | Cmp (uint64 Offset, const char *Str) const |
uint64 | AddStr (const TStr &Str) |
TStr | GetStr (const uint64 &StrId) const |
Static Public Member Functions | |
static PStrPool64 | New (::TSize MxBfL=0,::TSize GrowBy=16 *1024 *1024) |
static PStrPool64 | Load (TSIn &SIn, bool LoadCompact=true) |
Private Member Functions | |
void | Resize (const ::TSize &_MxBfL) |
Private Attributes | |
TCRef | CRef |
::TSize | MxBfL |
::TSize | BfL |
::TSize | GrowBy |
char * | Bf |
Friends | |
class | TPt< TStrPool64 > |
TStrPool64::TStrPool64 | ( | const TStrPool64 & | StrPool | ) |
TStrPool64::TStrPool64 | ( | TSIn & | SIn, |
bool | LoadCompact = true |
||
) |
Definition at line 1760 of file dt.cpp.
References Bf, BfL, TSIn::GetCh(), GrowBy, IAssert, TSIn::Load(), TSIn::LoadCs(), and MxBfL.
Definition at line 1796 of file dt.cpp.
References Bf, BfL, TStr::CStr(), TStr::Len(), Len(), MxBfL, and Resize().
Referenced by TStrPool64().
void TStrPool64::Clr | ( | bool | DoDel = false | ) |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 846 of file dt.h.
|
inlinestatic |
Definition at line 844 of file dt.h.
TStrPool64 & TStrPool64::operator= | ( | const TStrPool64 & | StrPool | ) |
|
private |
void TStrPool64::Save | ( | TSOut & | SOut | ) | const |
Definition at line 1771 of file dt.cpp.
References Bf, BfL, GrowBy, MxBfL, TSOut::PutCh(), TSOut::Save(), and TSOut::SaveCs().
|
friend |
|
private |
Definition at line 834 of file dt.h.
Referenced by AddStr(), Clr(), GetStr(), operator=(), Resize(), Save(), and TStrPool64().
|
private |
Definition at line 833 of file dt.h.
Referenced by AddStr(), Clr(), operator=(), Save(), and TStrPool64().
|
private |
Definition at line 833 of file dt.h.
Referenced by operator=(), Resize(), Save(), and TStrPool64().
|
private |
Definition at line 833 of file dt.h.
Referenced by AddStr(), Clr(), operator=(), Resize(), Save(), and TStrPool64().