|
| 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) |
|
|
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) |
|
template<class TKey, class TFDat, class TVDat>
class TFHash< TKey, TFDat, TVDat >
Definition at line 4 of file fds.h.
template<class TKey , class TFDat , class 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().
virtual TBlobPt GetFirstBlobPt()=0
void Save(TSOut &SOut) const
PSIn GetSIn(const bool &IsCut=true, const int &CutBfL=-1)
void Save(TSOut &SOut) const
TCache< TBlobPt, PHashKey > FHashKeyCache
virtual TBlobPt PutBlob(const PSIn &SIn)=0
void Gen(const TSizeTy &_Vals)
Constructs a vector (an array) of _Vals elements.
void * GetVoidThis() const
virtual PSIn GetBlob(const TBlobPt &BlobPt)=0
template<class TKey , class TFDat , class TVDat >
TBlobPt TFHash< TKey, TFDat, TVDat >::AddDat |
( |
const TKey & |
Key, |
|
|
const bool & |
ChangeFDat, |
|
|
const TFDat & |
FDat, |
|
|
const bool & |
ChangeVDat, |
|
|
const TVDat & |
VDat |
|
) |
| |
|
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().
280 KeyId=
AddKey(Key, ChangeFDat, FDat, ChangeVDat, VDatBPt);
void Save(TSOut &SOut) const
PSIn GetSIn(const bool &IsCut=true, const int &CutBfL=-1)
TBlobPt AddKey(const TKey &Key, const bool &ChangeFDat, const TFDat &FDat, const bool &ChangeVDatBPt, const TBlobPt &VDatBPt)
void GetKeyInfo(const TKey &Key, int &PortN, TBlobPt &PrevKeyId, TBlobPt &KeyId, PHashKey &FHashKey)
virtual TBlobPt PutBlob(const PSIn &SIn)=0
template<class TKey , class TFDat , class TVDat >
TBlobPt TFHash< TKey, TFDat, TVDat >::AddKey |
( |
const TKey & |
Key, |
|
|
const bool & |
ChangeFDat, |
|
|
const TFDat & |
FDat, |
|
|
const bool & |
ChangeVDatBPt, |
|
|
const TBlobPt & |
VDatBPt |
|
) |
| |
|
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().
225 GetKeyInfo(Key, PortN, PrevKeyId, KeyId, FHashKey);
236 FHashKey->PutModified(
false);
240 if (PrevKeyId.
Empty()){
244 PrevFHashKey->Next=KeyId;
245 PrevFHashKey->PutModified(
true);
249 if (ChangeFDat){FHashKey->FDat=FDat;}
250 if (ChangeVDatBPt){FHashKey->VDatBPt=VDatBPt;}
251 if (ChangeFDat||ChangeVDatBPt){
252 FHashKey->PutModified(
true);}
PHashKey GetFHashKey(const TBlobPt &KeyId)
void Save(TSOut &SOut) const
PSIn GetSIn(const bool &IsCut=true, const int &CutBfL=-1)
TFHashKey< TKey, TFDat, TVDat > THashKey
void GetKeyInfo(const TKey &Key, int &PortN, TBlobPt &PrevKeyId, TBlobPt &KeyId, PHashKey &FHashKey)
TCache< TBlobPt, PHashKey > FHashKeyCache
virtual TBlobPt PutBlob(const PSIn &SIn)=0