| 
    SNAP Library 2.3, Developer Reference
    2014-06-16 11:58:46
    
   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) | 
| 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) | 
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 788 of file dt.h.
References TStr::Fmt(), and IAssertR.

      
  | 
  inline | 
Definition at line 790 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 807 of file dt.h.
References AddStr(), TStr::CStr(), and TStr::Len().
Referenced by AddStr().


      
  | 
  inline | 
Definition at line 816 of file dt.h.
Referenced by TUniChDb::Clr().

      
  | 
  inline | 
      
  | 
  inline | 
Definition at line 811 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 809 of file dt.h.
References Assert, and TStr::GetNullStr().

      
  | 
  inline | 
Definition at line 795 of file dt.h.
      
  | 
  inlinestatic | 
Definition at line 792 of file dt.h.
Definition at line 793 of file dt.h.
Definition at line 794 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 797 of file dt.h.
References TFOut::New(), and Save().
Referenced by Save().


      
  | 
  private | 
Definition at line 782 of file dt.h.
Referenced by AddStr(), operator=(), Resize(), Save(), and TStrPool().
      
  | 
  private | 
Definition at line 781 of file dt.h.
Referenced by AddStr(), operator=(), Save(), and TStrPool().
      
  | 
  private | 
Definition at line 781 of file dt.h.
Referenced by operator=(), Resize(), Save(), and TStrPool().
      
  | 
  private | 
Definition at line 781 of file dt.h.
Referenced by AddStr(), operator=(), Resize(), Save(), and TStrPool().