SNAP Library 6.0, User Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <shash.h>
Public Member Functions | |
TSparseGroup () | |
TSparseGroup (TSIn &SIn) | |
TSparseGroup (const TSparseGroup &SG) | |
~TSparseGroup () | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
TSparseGroup & | operator= (const TSparseGroup &SG) |
bool | operator== (const TSparseGroup &SG) const |
bool | operator< (const TSparseGroup &SG) const |
int | Len () const |
int | MxLen () const |
int | Reserved () const |
bool | Empty () const |
void | Clr (const bool &DoDel=true) |
int | GetGroupSize () const |
uint | GetDiskSz () const |
bool | IsEmpty (const int &ValN) const |
const TVal & | Offset (const int &Pos) const |
TVal & | Offset (const int &Pos) |
int | OffsetToPos (int Offset) const |
int | PosToOffset (int Pos) const |
const TVal & | DefVal () const |
const TVal & | Get (const int &ValN) const |
const TVal & | operator[] (const int ValN) const |
TVal & | Set (const int &ValN, const TVal &Val) |
TVal & | Set (const int &ValN) |
void | Del (const int &ValN) |
Private Member Functions | |
bool | BMTest (const int &ValN) const |
void | BMSet (const int &ValN) |
void | BMClear (const int &ValN) |
Static Private Member Functions | |
static int | CharBit (const int &ValN) |
static int | ModBit (const int &ValN) |
static int | PosToOffset (const unsigned char *BitSet, int Pos) |
Private Attributes | |
unsigned char | BitSet [(GroupSize-1)/8+1] |
uint16 | Buckets |
TVal * | Group |
|
inline |
|
inline |
TSparseGroup< TVal, GroupSize >::TSparseGroup | ( | const TSparseGroup< TVal, GroupSize > & | SG | ) |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
void TSparseGroup< TVal, GroupSize >::Clr | ( | const bool & | DoDel = true | ) |
|
inline |
void TSparseGroup< TVal, GroupSize >::Del | ( | const int & | ValN | ) |
Definition at line 247 of file shash.h.
|
inline |
|
inline |
Definition at line 100 of file shash.h.
|
inline |
|
inline |
|
inline |
|
inline |
void TSparseGroup< TVal, GroupSize >::Load | ( | TSIn & | SIn | ) |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
int TSparseGroup< TVal, GroupSize >::OffsetToPos | ( | int | Offset | ) | const |
bool TSparseGroup< TVal, GroupSize >::operator< | ( | const TSparseGroup< TVal, GroupSize > & | SG | ) | const |
TSparseGroup< TVal, GroupSize > & TSparseGroup< TVal, GroupSize >::operator= | ( | const TSparseGroup< TVal, GroupSize > & | SG | ) |
bool TSparseGroup< TVal, GroupSize >::operator== | ( | const TSparseGroup< TVal, GroupSize > & | SG | ) | const |
|
inline |
|
staticprivate |
|
inline |
Definition at line 97 of file shash.h.
|
inline |
void TSparseGroup< TVal, GroupSize >::Save | ( | TSOut & | SOut | ) | const |
TVal & TSparseGroup< TVal, GroupSize >::Set | ( | const int & | ValN, |
const TVal & | Val | ||
) |
Definition at line 231 of file shash.h.
|
inline |
Definition at line 105 of file shash.h.
|
private |
|
private |
|
private |