SNAP Library , User Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <shash.h>
Public Types | |
typedef TSparseGroup< TVal, GroupSize > | TSGroup |
typedef TSparseTableI< TVal, GroupSize > | TIter |
Public Member Functions | |
TSparseTable (const int &MaxVals=0) | |
TSparseTable (const TSparseTable &ST) | |
TSparseTable (TSIn &SIn) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
TSparseTable & | operator= (const TSparseTable &ST) |
bool | operator== (const TSparseTable &ST) const |
bool | operator< (const TSparseTable &ST) const |
::TSize | GetMemUsed () const |
TIter | BegI () const |
TIter | EndI () const |
TIter | GetI (const int &ValN) const |
int | Len () const |
int | Reserved () const |
int | Groups () const |
bool | Empty () const |
uint | GetDiskSz () const |
void | Clr (const bool &DoDel=true) |
void | Reserve (const int NewVals) |
void | Resize (const int &NewVals) |
void | Swap (TSparseTable &ST) |
bool | IsEmpty (const int &ValN) const |
const TVal & | Get (const int &ValN) const |
TVal & | Set (const int &ValN, const TVal &Val) |
TVal & | Set (const int &ValN) |
void | Del (const int &ValN) |
TSGroup & | GetGroup (const int &GroupN) |
const TSGroup & | GetGroup (const int &GroupN) const |
Private Member Functions | |
int | PosInGroup (const int &ValN) const |
int | GroupNum (const int &ValN) const |
const TSGroup & | GetGrp1 (const int &ValN) const |
TSGroup & | GetGrp1 (const int &ValN) |
Static Private Member Functions | |
static int | GetGroups (const int &Vals) |
Private Attributes | |
TInt | MxVals |
TInt | Vals |
TVec< TSGroup > | GroupV |
typedef TSparseTableI<TVal, GroupSize> TSparseTable< TVal, GroupSize >::TIter |
typedef TSparseGroup<TVal, GroupSize> TSparseTable< TVal, GroupSize >::TSGroup |
TSparseTable< TVal, GroupSize >::TSparseTable | ( | const int & | MaxVals = 0 | ) | [inline] |
TSparseTable< TVal, GroupSize >::TSparseTable | ( | const TSparseTable< TVal, GroupSize > & | ST | ) | [inline] |
TSparseTable< TVal, GroupSize >::TSparseTable | ( | TSIn & | SIn | ) | [inline] |
TIter TSparseTable< TVal, GroupSize >::BegI | ( | ) | const [inline] |
void TSparseTable< TVal, GroupSize >::Clr | ( | const bool & | DoDel = true | ) |
void TSparseTable< TVal, GroupSize >::Del | ( | const int & | ValN | ) |
bool TSparseTable< TVal, GroupSize >::Empty | ( | ) | const [inline] |
TIter TSparseTable< TVal, GroupSize >::EndI | ( | ) | const [inline] |
const TVal& TSparseTable< TVal, GroupSize >::Get | ( | const int & | ValN | ) | const [inline] |
Definition at line 362 of file shash.h.
{ return GroupV[GroupNum(ValN)].Get(PosInGroup(ValN)); }
uint TSparseTable< TVal, GroupSize >::GetDiskSz | ( | ) | const [inline] |
TSGroup& TSparseTable< TVal, GroupSize >::GetGroup | ( | const int & | GroupN | ) | [inline] |
const TSGroup& TSparseTable< TVal, GroupSize >::GetGroup | ( | const int & | GroupN | ) | const [inline] |
static int TSparseTable< TVal, GroupSize >::GetGroups | ( | const int & | Vals | ) | [inline, static, private] |
const TSGroup& TSparseTable< TVal, GroupSize >::GetGrp1 | ( | const int & | ValN | ) | const [inline, private] |
TSGroup& TSparseTable< TVal, GroupSize >::GetGrp1 | ( | const int & | ValN | ) | [inline, private] |
TIter TSparseTable< TVal, GroupSize >::GetI | ( | const int & | ValN | ) | const [inline] |
::TSize TSparseTable< TVal, GroupSize >::GetMemUsed | ( | ) | const [inline] |
int TSparseTable< TVal, GroupSize >::GroupNum | ( | const int & | ValN | ) | const [inline, private] |
int TSparseTable< TVal, GroupSize >::Groups | ( | ) | const [inline] |
bool TSparseTable< TVal, GroupSize >::IsEmpty | ( | const int & | ValN | ) | const [inline] |
Definition at line 361 of file shash.h.
{ return GroupV[GroupNum(ValN)].IsEmpty(PosInGroup(ValN)); }
int TSparseTable< TVal, GroupSize >::Len | ( | ) | const [inline] |
void TSparseTable< TVal, GroupSize >::Load | ( | TSIn & | SIn | ) | [inline] |
bool TSparseTable< TVal, GroupSize >::operator< | ( | const TSparseTable< TVal, GroupSize > & | ST | ) | const |
TSparseTable< TVal, GroupSize > & TSparseTable< TVal, GroupSize >::operator= | ( | const TSparseTable< TVal, GroupSize > & | ST | ) |
bool TSparseTable< TVal, GroupSize >::operator== | ( | const TSparseTable< TVal, GroupSize > & | ST | ) | const |
int TSparseTable< TVal, GroupSize >::PosInGroup | ( | const int & | ValN | ) | const [inline, private] |
void TSparseTable< TVal, GroupSize >::Reserve | ( | const int | NewVals | ) | [inline] |
int TSparseTable< TVal, GroupSize >::Reserved | ( | ) | const [inline] |
void TSparseTable< TVal, GroupSize >::Resize | ( | const int & | NewVals | ) |
void TSparseTable< TVal, GroupSize >::Save | ( | TSOut & | SOut | ) | const [inline] |
TVal & TSparseTable< TVal, GroupSize >::Set | ( | const int & | ValN, |
const TVal & | Val | ||
) |
TVal & TSparseTable< TVal, GroupSize >::Set | ( | const int & | ValN | ) |
void TSparseTable< TVal, GroupSize >::Swap | ( | TSparseTable< TVal, GroupSize > & | ST | ) |
TVec<TSGroup> TSparseTable< TVal, GroupSize >::GroupV [private] |
TInt TSparseTable< TVal, GroupSize >::MxVals [private] |
TInt TSparseTable< TVal, GroupSize >::Vals [private] |