| 
    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 | |
| TCache () | |
| TCache (const TCache &) | |
| TCache (const int64 &_MxMemUsed, const int &Ports, void *_RefToBs) | |
| TCache & | operator= (const TCache &) | 
| int64 | GetMemUsed () const | 
| int64 | GetMxMemUsed () const | 
| bool | RefreshMemUsed () | 
| void | Put (const TKey &Key, const TDat &Dat) | 
| bool | Get (const TKey &Key, TDat &Dat) | 
| void | Del (const TKey &Key, const bool &DoEventCall=true) | 
| void | Flush () | 
| void | FlushAndClr () | 
| void * | FFirstKeyDat () | 
| bool | FNextKeyDat (void *&KeyDatP, TKey &Key, TDat &Dat) | 
| void | PutRefToBs (void *_RefToBs) | 
| void * | GetRefToBs () | 
Private Types | |
| typedef TLst< TKey > | TKeyL | 
| typedef TLstNd< TKey > * | TKeyLN | 
| typedef TPair< TKeyLN, TDat > | TKeyLNDatPr | 
Private Member Functions | |
| void | Purge (const int64 &MemToPurge) | 
Private Attributes | |
| int64 | MxMemUsed | 
| int64 | CurMemUsed | 
| THash< TKey, TKeyLNDatPr,  THashFunc >  | KeyDatH | 
| TKeyL | TimeKeyL | 
| void * | RefToBs | 
      
  | 
  private | 
| TCache< TKey, TDat, THashFunc >::TCache | ( | const TCache< TKey, TDat, THashFunc > & | ) | 
      
  | 
  inline | 
| void TCache< TKey, TDat, THashFunc >::Del | ( | const TKey & | Key, | 
| const bool & | DoEventCall = true  | 
        ||
| ) | 
Definition at line 1063 of file hash.h.
References TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
| void * TCache< TKey, TDat, THashFunc >::FFirstKeyDat | ( | ) | 
| void TCache< TKey, TDat, THashFunc >::Flush | ( | ) | 
| void TCache< TKey, TDat, THashFunc >::FlushAndClr | ( | ) | 
| bool TCache< TKey, TDat, THashFunc >::FNextKeyDat | ( | void *& | KeyDatP, | 
| TKey & | Key, | ||
| TDat & | Dat | ||
| ) | 
Definition at line 1107 of file hash.h.
References TLstNd< TVal >::GetVal(), and TLstNd< TVal >::Next().

| bool TCache< TKey, TDat, THashFunc >::Get | ( | const TKey & | Key, | 
| TDat & | Dat | ||
| ) | 
| int64 TCache< TKey, TDat, THashFunc >::GetMemUsed | ( | ) | const | 
      
  | 
  inline | 
      
  | 
  inline | 
| TCache& TCache< TKey, TDat, THashFunc >::operator= | ( | const TCache< TKey, TDat, THashFunc > & | ) | 
      
  | 
  private | 
| void TCache< TKey, TDat, THashFunc >::Put | ( | const TKey & | Key, | 
| const TDat & | Dat | ||
| ) | 
Definition at line 1034 of file hash.h.
References TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
      
  | 
  inline | 
| bool TCache< TKey, TDat, THashFunc >::RefreshMemUsed | ( | ) | 
      
  | 
  private | 
      
  | 
  private | 
Definition at line 971 of file hash.h.
Referenced by TCache< TBlobPt, TPt >::GetMxMemUsed().
      
  | 
  private | 
Definition at line 975 of file hash.h.
Referenced by TCache< TBlobPt, TPt >::GetRefToBs(), and TCache< TBlobPt, TPt >::PutRefToBs().