SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
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 1161 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 1205 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 1132 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 1069 of file hash.h.
Referenced by TCache< TKey, TDat, THashFunc >::GetMxMemUsed().
|
private |
Definition at line 1073 of file hash.h.
Referenced by TCache< TKey, TDat, THashFunc >::GetRefToBs(), and TCache< TKey, TDat, THashFunc >::PutRefToBs().