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 <shash.h>
Public Types | |
typedef TSparseTable< TKey, GroupSize >::TIter | TIter |
typedef TSparseTable< TKey, GroupSize >::TSGroup | TSGroup |
Public Member Functions | |
TSparseSet (const int &WantedVals=0) | |
TSparseSet (TSIn &SIn) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
TSparseSet & | operator= (const TSparseSet &SSet) |
bool | operator== (const TSparseSet &SSet) const |
bool | operator< (const TSparseSet &SSet) const |
::TSize | GetMemUsed () const |
TIter | BegI () const |
TIter | EndI () const |
TIter | GetI (const int &KeyId) 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 (TSparseSet &SSet) |
int | AddKey (const TKey &Key) |
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 |
void | GetKeyV (TVec< TKey > &KeyV) const |
Static Public Attributes | |
static const float | MxOccupancy = 0.8f |
static const float | MnOccupancy = 0.4f * 0.8f |
static const int | MinBuckets = 32 |
Private Member Functions | |
void | ResetThresh () |
int | GetMinSize (const int &CurVals, const int &WantedVals) const |
void | CopyFrom (const TSparseSet &SSet, const int &MnWanted) |
void | MoveFrom (TSparseSet &SSet, const int &MnWanted) |
void | ResizeDelta (const int &ValsToAdd, const int &MnWanted=0) |
void | FindPos (const TKey &Key, int &Pos, int &PosToIns) const |
Private Attributes | |
TInt | ShrinkThresh |
TInt | ExpandThresh |
TSparseTable< TKey, GroupSize > | Table |
typedef TSparseTable<TKey, GroupSize>::TIter TSparseSet< TKey, GroupSize >::TIter |
typedef TSparseTable<TKey, GroupSize>::TSGroup TSparseSet< TKey, GroupSize >::TSGroup |
|
inline |
Definition at line 791 of file shash.h.
|
inline |
int TSparseSet< TKey, GroupSize >::AddKey | ( | const TKey & | Key | ) |
Definition at line 960 of file shash.h.
|
inline |
|
inline |
|
private |
Definition at line 852 of file shash.h.
|
inline |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 816 of file shash.h.
void TSparseSet< TKey, GroupSize >::GetKeyV | ( | TVec< TKey > & | KeyV | ) | const |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 875 of file shash.h.
bool TSparseSet< TKey, GroupSize >::operator< | ( | const TSparseSet< TKey, GroupSize > & | SSet | ) | const |
TSparseSet< TKey, GroupSize > & TSparseSet< TKey, GroupSize >::operator= | ( | const TSparseSet< TKey, GroupSize > & | SSet | ) |
bool TSparseSet< TKey, GroupSize >::operator== | ( | const TSparseSet< TKey, GroupSize > & | SSet | ) | const |
|
inline |
Definition at line 810 of file shash.h.
|
inline |
|
private |
|
private |
Definition at line 902 of file shash.h.
|
inline |
void TSparseSet< TKey, GroupSize >::Swap | ( | TSparseSet< TKey, GroupSize > & | SSet | ) |
|
private |
|
static |
|
static |
|
static |
|
private |
|
private |