| 
    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 <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) | 
| 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 int | GetPrimHashCd (const char *CStr) | 
| static int | GetSecHashCd (const char *CStr) | 
Private Member Functions | |
| void | Resize (TSize _MxBfL) | 
Private Attributes | |
| TCRef | CRef | 
| TSize | MxBfL | 
| TSize | BfL | 
| uint | GrowBy | 
| char * | Bf | 
| TVec< TSize > | IdOffV | 
Friends | |
| class | TPt< TBigStrPool > | 
| TBigStrPool::TBigStrPool | ( | TSIn & | SIn, | 
| bool | LoadCompact = true  | 
        ||
| ) | 
Definition at line 24 of file hash.cpp.
References TVec< TVal, TSizeTy >::Add(), Bf, BfL, TVec< TVal, TSizeTy >::Gen(), GrowBy, IAssert, IdOffV, TSIn::Load(), TSIn::LoadBf(), TSIn::LoadCs(), MxBfL, and TSizeMx.

      
  | 
  inline | 
| int TBigStrPool::AddStr | ( | const char * | Str, | 
| uint | Len | ||
| ) | 
Definition at line 63 of file hash.cpp.
References TVec< TVal, TSizeTy >::Add(), Assert, Bf, BfL, IAssertR, IdOffV, TVec< TVal, TSizeTy >::Len(), Len(), MxBfL, and Resize().
Referenced by TBigStrPool().


      
  | 
  inline | 
      
  | 
  inline | 
Definition at line 689 of file hash.h.
References AddStr(), TStr::CStr(), and TStr::Len().
Referenced by AddStr().


      
  | 
  inline | 
      
  | 
  inline | 
Definition at line 693 of file hash.h.
References Assert, TStr::CStr(), and TStr::GetNullStr().

      
  | 
  inline | 
Definition at line 698 of file hash.h.
References Assert, TStr::CStr(), and TStr::GetNullStr().

      
  | 
  static | 
Definition at line 74 of file hash.cpp.
References TStrHashF_DJB::GetPrimHashCd().

      
  | 
  inline | 
Definition at line 707 of file hash.h.
References Assert, and TPt< TRec >::GetPrimHashCd().

      
  | 
  static | 
Definition at line 78 of file hash.cpp.
References TStrHashF_DJB::GetSecHashCd().

      
  | 
  inline | 
Definition at line 709 of file hash.h.
References Assert, and TPt< TRec >::GetSecHashCd().

      
  | 
  inline | 
Definition at line 691 of file hash.h.
References Assert, and TStr::GetNullStr().

Definition at line 696 of file hash.h.
References Assert, and TStr::GetNullStr().

      
  | 
  inline | 
      
  | 
  inlinestatic | 
Definition at line 676 of file hash.h.
      
  | 
  inlinestatic | 
Definition at line 673 of file hash.h.
      
  | 
  inlinestatic | 
Definition at line 674 of file hash.h.
      
  | 
  inlinestatic | 
Definition at line 675 of file hash.h.
References TFIn::New().

| TBigStrPool & TBigStrPool::operator= | ( | const TBigStrPool & | Pool | ) | 
      
  | 
  private | 
Definition at line 3 of file hash.cpp.
References Bf, TStr::Fmt(), TInt::GetMn(), GrowBy, IAssert, IAssertR, and MxBfL.
Referenced by AddStr().


| void TBigStrPool::Save | ( | TSOut & | SOut | ) | const | 
Definition at line 43 of file hash.cpp.
References Bf, BfL, GrowBy, IdOffV, TVec< TVal, TSizeTy >::Len(), MxBfL, TSOut::Save(), TSOut::SaveBf(), and TSOut::SaveCs().

      
  | 
  inline | 
      
  | 
  friend | 
      
  | 
  private | 
Definition at line 662 of file hash.h.
Referenced by AddStr(), operator=(), Resize(), Save(), and TBigStrPool().
      
  | 
  private | 
Definition at line 660 of file hash.h.
Referenced by AddStr(), operator=(), Save(), and TBigStrPool().
      
  | 
  private | 
Definition at line 661 of file hash.h.
Referenced by operator=(), Resize(), Save(), and TBigStrPool().
Definition at line 663 of file hash.h.
Referenced by AddStr(), Save(), and TBigStrPool().
      
  | 
  private | 
Definition at line 660 of file hash.h.
Referenced by AddStr(), operator=(), Resize(), Save(), and TBigStrPool().