SNAP Library 3.0, User Reference
2016-07-20 17:56:49
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 |
||
) |
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 | ||
) |
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 | ||
) |
|
inline |
bool TCache< TKey, TDat, THashFunc >::RefreshMemUsed | ( | ) |
|
private |
|
private |