SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
dt.h File Reference

Go to the source code of this file.

Classes

class  TRnd
class  TMemIn
class  TMemOut
class  TChA
class  TChAIn
class  TRStr
class  TStr
class  TStrIn
class  TDbStr
class  TVoid
class  TBool
class  TCh
class  TUCh
class  TSInt
class  TInt
class  TUInt
class  TUInt64
class  TFlt
class  TAscFlt
class  TSFlt
class  TLFlt
class  TFltRect

Typedefs

typedef TVec< TStrTStrV

Functions

 ClassHdTP (TXmlTok, PXmlTok)
void Resize (const int &_MxBfL)
bool DoFitLen (const int &LBfL) const
 TMem (const int &_MxBfL=0)
static PMem New (const int &MxBfL=0)
 TMem (const void *_Bf, const int &_BfL)
static PMem New (const void *Bf, const int &BfL)
 TMem (const TMem &Mem)
static PMem New (const TMem &Mem)
static PMem New (const PMem &Mem)
 TMem (const TStr &Str)
static PMem New (const TStr &Str)
 ~TMem ()
 TMem (TSIn &SIn)
void Save (TSOut &SOut) const
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm)
void SaveXml (TSOut &SOut, const TStr &Nm) const
TMemoperator= (const TMem &Mem)
char * operator() () const
TMemoperator+= (const char &Ch)
TMemoperator+= (const TMem &Mem)
TMemoperator+= (const TStr &Str)
TMemoperator+= (const PSIn &SIn)
char & operator[] (const int &ChN) const
int GetMemUsed () const
void Gen (const int &_BfL)
void GenZeros (const int &_BfL)
void Reserve (const int &_MxBfL, const bool &DoClr=true)
void Del (const int &BChN, const int &EChN)
void Clr (const bool &DoDel=true)
int Len () const
bool Empty () const
void Trunc (const int &_BfL)
void Push (const char &Ch)
char Pop ()
bool DoFitStr (const TStr &Str) const
void AddBf (const void *Bf, const int &BfL)
char * GetBf () const
TStr GetAsStr (const char &NewNullCh='\0') const
PSIn GetSIn () const
static void LoadMem (const PSIn &SIn, TMem &Mem)
static void LoadMem (const PSIn &SIn, const PMem &Mem)
void SaveMem (const PSOut &SOut) const
 TStrPool (uint MxBfLen=0, uint _GrowBy=16 *1024 *1024)
 TStrPool (TSIn &SIn, bool LoadCompact=true)
 TStrPool (const TStrPool &Pool)
 ~TStrPool ()
static PStrPool New (uint _MxBfLen=0, uint _GrowBy=16 *1024 *1024)
static PStrPool New (TSIn &SIn)
static PStrPool Load (TSIn &SIn, bool LoadCompacted=true)
void Save (const TStr &FNm)
uint Size () const
TStrPooloperator= (const TStrPool &Pool)
uint AddStr (const char *Str, uint Len)
uint AddStr (const char *Str)
uint AddStr (const TStr &Str)
TStr GetStr (uint Offset) const
const char * GetCStr (uint Offset) const
void Clr (bool DoDel=false)
int Cmp (uint Offset, const char *Str) const
static int GetPrimHashCd (const char *CStr)
static int GetSecHashCd (const char *CStr)
int GetPrimHashCd (uint Offset)
int GetSecHashCd (uint Offset)
 TStrPool64 (::TSize _MxBfL=0,::TSize _GrowBy=16 *1024 *1024)
 TStrPool64 (const TStrPool64 &StrPool)
 TStrPool64 (TSIn &SIn, bool LoadCompact=true)
 ~TStrPool64 ()
static PStrPool64 New (::TSize MxBfL=0,::TSize GrowBy=16 *1024 *1024)
TStrPool64operator= (const TStrPool64 &StrPool)
uint64 Reserved () const
int Cmp (uint64 Offset, const char *Str) const
TStr GetStr (const uint64 &StrId) const

Variables

ClassTP(TMem, PMem) private char * Bf

Typedef Documentation

typedef TVec<TStr> TStrV

Function Documentation

void TMem::AddBf ( const void *  Bf,
const int &  BfL 
)
int TBigStrPool::AddStr ( const char *  Str,
uint  Len 
)
uint AddStr ( const char *  Str)
uint64 AddStr ( const TStr Str)
ClassHdTP ( TXmlTok  ,
PXmlTok   
)
void Clr ( const bool &  DoDel = true)
void Clr ( bool  DoDel = false)
int Cmp ( uint  Offset,
const char *  Str 
) const
int Cmp ( uint64  Offset,
const char *  Str 
) const
void Del ( const int &  BChN,
const int &  EChN 
)
bool DoFitLen ( const int &  LBfL) const
bool TMem::DoFitStr ( const TStr Str) const
bool Empty ( ) const
void Gen ( const int &  _BfL)
void GenZeros ( const int &  _BfL)
TStr GetAsStr ( const char &  NewNullCh = '\0') const
char* GetBf ( ) const
const char* GetCStr ( uint  Offset) const
int GetMemUsed ( ) const
static int GetPrimHashCd ( const char *  CStr) [static]
int GetPrimHashCd ( uint  Offset)
static int GetSecHashCd ( const char *  CStr) [static]
int GetSecHashCd ( uint  Offset)
PSIn GetSIn ( ) const
TStr GetStr ( uint  Offset) const
TStr GetStr ( const uint64 StrId) const
uint64 Len ( ) const
static PStrPool64 Load ( TSIn SIn,
bool  LoadCompacted = true 
) [static]
static void LoadMem ( const PSIn SIn,
TMem Mem 
) [static]
static void LoadMem ( const PSIn SIn,
const PMem &  Mem 
) [static]
void LoadXml ( const PXmlTok &  XmlTok,
const TStr Nm 
)
static PMem New ( const int &  MxBfL = 0) [static]
static PMem New ( const void *  Bf,
const int &  BfL 
) [static]
static PMem New ( const TMem Mem) [static]
static PMem New ( const PMem &  Mem) [static]
static PStrPool New ( const TStr Str) [static]
static PStrPool New ( uint  _MxBfLen = 0,
uint  _GrowBy = 16*1024*1024 
) [static]
static PStrPool New ( TSIn SIn) [static]
static PStrPool64 New ( ::TSize  MxBfL = 0,
::TSize  GrowBy = 16*1024*1024 
) [static]
char * operator() ( ) const
TMem& operator+= ( const char &  Ch)
TMem& operator+= ( const TMem Mem)
TMem& operator+= ( const TStr Str)
TMem& operator+= ( const PSIn SIn)
TMem& operator= ( const TMem Mem)
TStrPool& operator= ( const TStrPool Pool)
TStrPool64& operator= ( const TStrPool64 StrPool)
char * operator[] ( const int &  ChN) const
char Pop ( )
void Push ( const char &  Ch)
void Reserve ( const int &  _MxBfL,
const bool &  DoClr = true 
)
uint64 Reserved ( ) const
void Resize ( const int &  _MxBfL)
void Save ( TSOut SOut) const
void Save ( const TStr FNm)
void SaveMem ( const PSOut SOut) const
void SaveXml ( TSOut SOut,
const TStr Nm 
) const
uint Size ( ) const
TMem ( const int &  _MxBfL = 0)
TMem ( const void *  _Bf,
const int &  _BfL 
)
TMem ( const TMem Mem)
TMem::TMem ( const TStr Str)
TMem ( TSIn SIn) [explicit]
void Trunc ( const int &  _BfL)
TStrPool::TStrPool ( uint  MxBfLen = 0,
uint  _GrowBy = 16*1024*1024 
)
TStrPool::TStrPool ( TSIn SIn,
bool  LoadCompact = true 
)
TStrPool ( const TStrPool Pool)
TStrPool64::TStrPool64 ( ::TSize  _MxBfL = 0,
::TSize  _GrowBy = 16*1024*1024 
)
TStrPool64::TStrPool64 ( const TStrPool64 StrPool)
TStrPool64::TStrPool64 ( TSIn SIn,
bool  LoadCompact = true 
)
~TMem ( )
~TStrPool ( )
~TStrPool64 ( )

Variable Documentation

ClassTP (TStrPool64, PStrPool64) private char* Bf