List of all members.
Public Types |
typedef TSHashKeyDat< TKey, TDat > | THashKeyDat |
typedef TSparseTable
< THashKeyDat, GroupSize >
::TIter | TIter |
typedef TSparseTable
< THashKeyDat, GroupSize >
::TSGroup | TSGroup |
Public Member Functions |
| TSparseHash (const int &WantedVals=0) |
| TSparseHash (TSIn &SIn) |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
TSparseHash & | operator= (const TSparseHash &SHT) |
bool | operator== (const TSparseHash &SHT) const |
bool | operator< (const TSparseHash &SHT) const |
::TSize | GetMemUsed () const |
TIter | BegI () const |
TIter | EndI () const |
TIter | GetI (const TKey &Key) const |
bool | Empty () const |
int | Len () const |
int | Reserved () const |
uint | GetDiskSz () const |
void | Reserve (const int &MxVals) |
void | Clr (const bool &DoDel=true) |
void | Swap (TSparseHash &HT) |
int | AddKey (const TKey &Key) |
TDat & | AddDat (const TKey &Key) |
TDat & | AddDat (const TKey &Key, const TDat &Dat) |
const TKey & | GetKey (const int &KeyId) const |
int | GetKeyId (const TKey &Key) const |
bool | IsKey (const TKey &Key) const |
bool | IsKey (const TKey &Key, int &KeyId) const |
bool | IsKeyId (const int &KeyId) const |
int | GetRndKeyId (TRnd &Rnd=TInt::Rnd) const |
const TDat & | GetDat (const TKey &Key) const |
TDat & | GetDat (const TKey &Key) |
const TDat & | GetDatKeyId (const int &KeyId) const |
TDat & | GetDatKeyId (const int &KeyId) |
void | GetKeyDat (const int &KeyId, TKey &Key, TDat &Dat) const |
bool | IsKeyGetDat (const TKey &Key, TDat &Dat) const |
void | GetKeyV (TVec< TKey > &KeyV) const |
void | GetDatV (TVec< TDat > &DatV) const |
void | GetKeyDatPrV (TVec< TPair< TKey, TDat > > &KeyDatPrV) const |
void | GetDatKeyPrV (TVec< TPair< TDat, TKey > > &DatKeyPrV) const |
Static Public Attributes |
static const float | MxOccupancy = 0.8f |
static const float | MnOccupancy = 0.4f * 0.8f |
static const int | MinBuckets = 32 |
template<class TKey, class TDat, uint16 GroupSize = 48>
class TSparseHash< TKey, TDat, GroupSize >
Member Typedef Documentation
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
Constructor & Destructor Documentation
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
Member Function Documentation
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize>
TDat & TSparseHash< TKey, TDat, GroupSize >::AddDat |
( |
const TKey & |
Key, |
|
|
const TDat & |
Dat |
|
) |
| |
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
void TSparseHash< TKey, TDat, GroupSize >::Clr |
( |
const bool & |
DoDel = true | ) |
[inline] |
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
const TKey& TSparseHash< TKey, TDat, GroupSize >::GetKey |
( |
const int & |
KeyId | ) |
const [inline] |
template<class TKey , class TDat , uint16 GroupSize>
void TSparseHash< TKey, TDat, GroupSize >::GetKeyDat |
( |
const int & |
KeyId, |
|
|
TKey & |
Key, |
|
|
TDat & |
Dat |
|
) |
| const |
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
bool TSparseHash< TKey, TDat, GroupSize >::IsKey |
( |
const TKey & |
Key | ) |
const [inline] |
template<class TKey , class TDat , uint16 GroupSize = 48>
bool TSparseHash< TKey, TDat, GroupSize >::IsKey |
( |
const TKey & |
Key, |
|
|
int & |
KeyId |
|
) |
| const [inline] |
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize>
bool TSparseHash< TKey, TDat, GroupSize >::operator< |
( |
const TSparseHash< TKey, TDat, GroupSize > & |
SHT | ) |
const |
template<class TKey , class TDat , uint16 GroupSize>
template<class TKey , class TDat , uint16 GroupSize>
bool TSparseHash< TKey, TDat, GroupSize >::operator== |
( |
const TSparseHash< TKey, TDat, GroupSize > & |
SHT | ) |
const |
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize>
Member Data Documentation
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
template<class TKey , class TDat , uint16 GroupSize = 48>
The documentation for this class was generated from the following file: