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 <fds.h>
Public Member Functions | |
TFHash (const TStr &HashFNm, const TFAccess &_Access, const int &Ports, const int &MxMemUsed) | |
~TFHash () | |
TFHash (TSIn &) | |
void | Save (TSOut &) |
TFHash & | operator= (const TFHash &) |
int | GetMemUsed () |
void | CacheFlushAndClr () |
bool | Empty () const |
int | Len () const |
TBlobPt | AddFDat (const TKey &Key, const TFDat &FDat) |
TBlobPt | AddVDat (const TKey &Key, const TVDat &VDat) |
TBlobPt | AddFVDat (const TKey &Key, const TFDat &FDat, const TVDat &VDat) |
void | DelKey (const TKey &Key) |
void | DelKeyId (const TBlobPt &KeyId) |
void | GetKey (const TBlobPt &KeyId, TKey &Key) |
TBlobPt | GetKeyId (const TKey &Key) |
bool | IsKey (const TKey &Key) |
bool | IsKey (const TKey &Key, TBlobPt &KeyId) |
TBlobPt | GetFDat (const TKey &Key, TFDat &FDat) |
TBlobPt | GetVDat (const TKey &Key, TVDat &VDat) |
TBlobPt | GetFVDat (const TKey &Key, TFDat &FDat, TVDat &VDat) |
void | GetKeyFDat (const TBlobPt &KeyId, TKey &Key, TFDat &FDat) |
void | GetKeyFVDat (const TBlobPt &KeyId, TKey &Key, TFDat &FDat, TVDat &VDat) |
TBlobPt | FFirstKeyId () |
bool | FNextKeyId (TBlobPt &TrvBlobPt, TBlobPt &KeyId) |
Static Public Member Functions | |
static PFHash | Load (TSIn &) |
Private Types | |
typedef TPt< TFHash< TKey, TFDat, TVDat > > | PFHash |
typedef TFHashKey< TKey, TFDat, TVDat > | THashKey |
typedef TPt< THashKey > | PHashKey |
Private Member Functions | |
void * | GetVoidThis () const |
PBlobBs | GetHashBBs () |
PHashKey | GetFHashKey (const TBlobPt &KeyId) |
void | GetKeyInfo (const TKey &Key, int &PortN, TBlobPt &PrevKeyId, TBlobPt &KeyId, PHashKey &FHashKey) |
void | GetKeyInfo (const TKey &Key, TBlobPt &KeyId, PHashKey &FHashKey) |
TBlobPt | AddKey (const TKey &Key, const bool &ChangeFDat, const TFDat &FDat, const bool &ChangeVDatBPt, const TBlobPt &VDatBPt) |
TBlobPt | AddDat (const TKey &Key, const bool &ChangeFDat, const TFDat &FDat, const bool &ChangeVDat, const TVDat &VDat) |
Private Attributes | |
TCRef | CRef |
TFAccess | Access |
PBlobBs | HashBBs |
TBlobPtV | PortV |
TInt | Keys |
TCache< TBlobPt, PHashKey > | FHashKeyCache |
Friends | |
class | TFHashKey< TKey, TFDat, TVDat > |
class | TPt< TFHash< TKey, TFDat, TVDat > > |
TFHash< TKey, TFDat, TVDat >::TFHash | ( | const TStr & | HashFNm, |
const TFAccess & | _Access, | ||
const int & | Ports, | ||
const int & | MxMemUsed | ||
) |
Definition at line 180 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::Access, faCreate, faRdOnly, faUpdate, TVec< TVal, TSizeTy >::Gen(), TBlobBs::GetBlob(), TBlobBs::GetFirstBlobPt(), TMOut::GetSIn(), TFHash< TKey, TFDat, TVDat >::HashBBs, IAssert, TFHash< TKey, TFDat, TVDat >::Keys, TFHash< TKey, TFDat, TVDat >::PortV, TBlobBs::PutBlob(), TVec< TVal, TSizeTy >::Save(), and TInt::Save().
Definition at line 207 of file fds.h.
References faCreate, faUpdate, TMOut::GetSIn(), and TSOut::Save().
|
private |
Definition at line 258 of file fds.h.
References TBlobPt::Empty(), fhbtVDat, TMOut::GetSIn(), and TInt::Save().
Referenced by TFHash< TKey, TFDat, TVDat >::AddFVDat(), and TFHash< TKey, TFDat, TVDat >::AddVDat().
|
inline |
Definition at line 124 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::AddKey().
|
inline |
Definition at line 128 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::AddDat().
|
private |
Definition at line 219 of file fds.h.
References TBlobPt::Empty(), fhbtKey, TMOut::GetSIn(), TPt< TRec >::Save(), and TInt::Save().
Referenced by TFHash< TKey, TFDat, TVDat >::AddFDat().
|
inline |
Definition at line 126 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::AddDat().
|
inline |
void TFHash< TKey, TFDat, TVDat >::DelKey | ( | const TKey & | Key | ) |
Definition at line 285 of file fds.h.
References TBlobPt::Empty(), TPt< TRec >::Empty(), and IAssert.
Referenced by TFHash< TKey, TFDat, TVDat >::DelKeyId().
|
inline |
Definition at line 132 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::DelKey(), and TFHash< TKey, TFDat, TVDat >::GetKey().
|
inline |
TBlobPt TFHash< TKey, TFDat, TVDat >::FFirstKeyId | ( | ) |
bool TFHash< TKey, TFDat, TVDat >::FNextKeyId | ( | TBlobPt & | TrvBlobPt, |
TBlobPt & | KeyId | ||
) |
TBlobPt TFHash< TKey, TFDat, TVDat >::GetFDat | ( | const TKey & | Key, |
TFDat & | FDat | ||
) |
Definition at line 308 of file fds.h.
|
inlineprivate |
Definition at line 84 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::FHashKeyCache, fhbtKey, TBlobBs::GetBlob(), TFHash< TKey, TFDat, TVDat >::HashBBs, and IAssert.
Referenced by TFHash< TKey, TFDat, TVDat >::GetKey().
TBlobPt TFHash< TKey, TFDat, TVDat >::GetFVDat | ( | const TKey & | Key, |
TFDat & | FDat, | ||
TVDat & | VDat | ||
) |
|
inlineprivate |
Definition at line 83 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::HashBBs.
Referenced by TFHashKey< TKey, TFDat, TVDat >::OnDelFromCache().
|
inline |
Definition at line 135 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::GetFHashKey().
Referenced by TFHash< TKey, TFDat, TVDat >::DelKeyId().
void TFHash< TKey, TFDat, TVDat >::GetKeyFDat | ( | const TBlobPt & | KeyId, |
TKey & | Key, | ||
TFDat & | FDat | ||
) |
void TFHash< TKey, TFDat, TVDat >::GetKeyFVDat | ( | const TBlobPt & | KeyId, |
TKey & | Key, | ||
TFDat & | FDat, | ||
TVDat & | VDat | ||
) |
|
inline |
Definition at line 137 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::GetKeyInfo().
Referenced by TFHash< TKey, TFDat, TVDat >::IsKey().
|
private |
Definition at line 160 of file fds.h.
References TBlobPt::Clr(), and TBlobPt::Empty().
Referenced by TFHash< TKey, TFDat, TVDat >::GetKeyId(), and TFHash< TKey, TFDat, TVDat >::GetKeyInfo().
|
inlineprivate |
Definition at line 97 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::GetKeyInfo().
|
inline |
Definition at line 117 of file fds.h.
References TFHash< TKey, TFDat, TVDat >::FHashKeyCache, TVec< TVal, TSizeTy >::GetMemUsed(), and TFHash< TKey, TFDat, TVDat >::PortV.
TBlobPt TFHash< TKey, TFDat, TVDat >::GetVDat | ( | const TKey & | Key, |
TVDat & | VDat | ||
) |
|
inlineprivate |
|
inline |
Definition at line 140 of file fds.h.
References TBlobPt::Empty(), and TFHash< TKey, TFDat, TVDat >::GetKeyId().
|
inline |
Definition at line 142 of file fds.h.
References TBlobPt::Empty(), and TFHash< TKey, TFDat, TVDat >::GetKeyId().
|
inline |
|
friend |
|
private |
Definition at line 76 of file fds.h.
Referenced by TFHash< TKey, TFDat, TVDat >::TFHash().
|
private |
Definition at line 80 of file fds.h.
Referenced by TFHash< TKey, TFDat, TVDat >::CacheFlushAndClr(), TFHash< TKey, TFDat, TVDat >::GetFHashKey(), and TFHash< TKey, TFDat, TVDat >::GetMemUsed().
|
private |
Definition at line 77 of file fds.h.
Referenced by TFHash< TKey, TFDat, TVDat >::GetFHashKey(), TFHash< TKey, TFDat, TVDat >::GetHashBBs(), and TFHash< TKey, TFDat, TVDat >::TFHash().
Definition at line 79 of file fds.h.
Referenced by TFHash< TKey, TFDat, TVDat >::Empty(), TFHash< TKey, TFDat, TVDat >::Len(), and TFHash< TKey, TFDat, TVDat >::TFHash().
|
private |
Definition at line 78 of file fds.h.
Referenced by TFHash< TKey, TFDat, TVDat >::GetMemUsed(), and TFHash< TKey, TFDat, TVDat >::TFHash().