SNAP Library, User Reference
2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
|
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 |
typedef TSparseTable<TKey, GroupSize>::TIter TSparseSet< TKey, GroupSize >::TIter |
typedef TSparseTable<TKey, GroupSize>::TSGroup TSparseSet< TKey, GroupSize >::TSGroup |
TSparseSet< TKey, GroupSize >::TSparseSet | ( | const int & | WantedVals = 0 | ) | [inline] |
TSparseSet< TKey, GroupSize >::TSparseSet | ( | TSIn & | SIn | ) | [inline] |
int TSparseSet< TKey, GroupSize >::AddKey | ( | const TKey & | Key | ) |
TIter TSparseSet< TKey, GroupSize >::BegI | ( | ) | const [inline] |
void TSparseSet< TKey, GroupSize >::Clr | ( | const bool & | DoDel = true | ) | [inline] |
bool TSparseSet< TKey, GroupSize >::Empty | ( | ) | const [inline] |
TIter TSparseSet< TKey, GroupSize >::EndI | ( | ) | const [inline] |
uint TSparseSet< TKey, GroupSize >::GetDiskSz | ( | ) | const [inline] |
TIter TSparseSet< TKey, GroupSize >::GetI | ( | const int & | KeyId | ) | const [inline] |
const TKey& TSparseSet< TKey, GroupSize >::GetKey | ( | const int & | KeyId | ) | const [inline] |
int TSparseSet< TKey, GroupSize >::GetKeyId | ( | const TKey & | Key | ) | const [inline] |
void TSparseSet< TKey, GroupSize >::GetKeyV | ( | TVec< TKey > & | KeyV | ) | const |
::TSize TSparseSet< TKey, GroupSize >::GetMemUsed | ( | ) | const [inline] |
int TSparseSet< TKey, GroupSize >::GetRndKeyId | ( | TRnd & | Rnd = TInt::Rnd | ) | const [inline] |
bool TSparseSet< TKey, GroupSize >::IsKey | ( | const TKey & | Key | ) | const [inline] |
bool TSparseSet< TKey, GroupSize >::IsKey | ( | const TKey & | Key, |
int & | KeyId | ||
) | const [inline] |
bool TSparseSet< TKey, GroupSize >::IsKeyId | ( | const int & | KeyId | ) | const [inline] |
int TSparseSet< TKey, GroupSize >::Len | ( | ) | const [inline] |
void TSparseSet< TKey, GroupSize >::Load | ( | TSIn & | SIn | ) | [inline] |
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 |
void TSparseSet< TKey, GroupSize >::Reserve | ( | const int & | MxVals | ) | [inline] |
int TSparseSet< TKey, GroupSize >::Reserved | ( | ) | const [inline] |
void TSparseSet< TKey, GroupSize >::Save | ( | TSOut & | SOut | ) | const [inline] |
void TSparseSet< TKey, GroupSize >::Swap | ( | TSparseSet< TKey, GroupSize > & | SSet | ) |
const int TSparseSet< TKey, GroupSize >::MinBuckets = 32 [static] |
const float TSparseSet< TKey, GroupSize >::MnOccupancy = 0.4f * 0.8f [static] |
const float TSparseSet< TKey, GroupSize >::MxOccupancy = 0.8f [static] |