|
SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
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 |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 336 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::BegI().

| void TSparseTable< TVal, GroupSize >::Clr | ( | const bool & | DoDel = true | ) |
Definition at line 392 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::Clr().

| void TSparseTable< TVal, GroupSize >::Del | ( | const int & | ValN | ) |
Definition at line 440 of file shash.h.
References Assert, TSparseGroup< TVal, GroupSize >::Del(), and TSparseGroup< TVal, GroupSize >::Len().

|
inline |
Definition at line 352 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::BegI().

|
inline |
Definition at line 342 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::EndI().

|
inline |
Definition at line 362 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::GetKey().

|
inline |
Definition at line 353 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::GetDiskSz().

|
inline |
Definition at line 367 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::CopyFrom(), and TSparseSet< TKey, GroupSize >::MoveFrom().

|
inline |
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 343 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::GetI().

|
inline |
Definition at line 334 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::GetMemUsed().

|
inlineprivate |
Definition at line 320 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::Get(), TSparseTable< TKey, GroupSize >::GetGrp1(), TSparseTable< TKey, GroupSize >::GetI(), and TSparseTable< TKey, GroupSize >::IsEmpty().

|
inline |
Definition at line 351 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::BegI(), TSparseSet< TKey, GroupSize >::CopyFrom(), TSparseTable< TKey, GroupSize >::GetDiskSz(), and TSparseSet< TKey, GroupSize >::MoveFrom().

|
inline |
Definition at line 361 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::GetI(), and TSparseSet< TKey, GroupSize >::IsKeyId().

|
inline |
Definition at line 349 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::BegI(), and TSparseSet< TKey, GroupSize >::Len().

|
inline |
Definition at line 328 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::Load().

| bool TSparseTable< TVal, GroupSize >::operator< | ( | const TSparseTable< TVal, GroupSize > & | ST | ) | const |
Definition at line 387 of file shash.h.
References TSparseTable< TVal, GroupSize >::GroupV, and TSparseTable< TVal, GroupSize >::Vals.
| TSparseTable< TVal, GroupSize > & TSparseTable< TVal, GroupSize >::operator= | ( | const TSparseTable< TVal, GroupSize > & | ST | ) |
Definition at line 372 of file shash.h.
References TSparseTable< TVal, GroupSize >::GroupV, TSparseTable< TVal, GroupSize >::MxVals, and TSparseTable< TVal, GroupSize >::Vals.
| bool TSparseTable< TVal, GroupSize >::operator== | ( | const TSparseTable< TVal, GroupSize > & | ST | ) | const |
Definition at line 382 of file shash.h.
References TSparseTable< TVal, GroupSize >::GroupV, TSparseTable< TVal, GroupSize >::MxVals, and TSparseTable< TVal, GroupSize >::Vals.
|
inlineprivate |
Definition at line 319 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::Get(), TSparseTable< TKey, GroupSize >::GetI(), and TSparseTable< TKey, GroupSize >::IsEmpty().

|
inline |
|
inline |
Definition at line 350 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::Reserved().

| void TSparseTable< TVal, GroupSize >::Resize | ( | const int & | NewVals | ) |
Definition at line 403 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::Reserve().

|
inline |
Definition at line 329 of file shash.h.
Referenced by TSparseSet< TKey, GroupSize >::Save().

| TVal & TSparseTable< TVal, GroupSize >::Set | ( | const int & | ValN, |
| const TVal & | Val | ||
| ) |
Definition at line 420 of file shash.h.
References Assert, TSparseGroup< TVal, GroupSize >::Len(), and TSparseGroup< TVal, GroupSize >::Set().

| TVal & TSparseTable< TVal, GroupSize >::Set | ( | const int & | ValN | ) |
Definition at line 430 of file shash.h.
References Assert, TSparseGroup< TVal, GroupSize >::Len(), and TSparseGroup< TVal, GroupSize >::Set().

| void TSparseTable< TVal, GroupSize >::Swap | ( | TSparseTable< TVal, GroupSize > & | ST | ) |
Definition at line 413 of file shash.h.
References TSparseTable< TVal, GroupSize >::GroupV, TSparseTable< TVal, GroupSize >::MxVals, Swap(), and TSparseTable< TVal, GroupSize >::Vals.

|
private |
Definition at line 316 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::BegI(), TSparseTable< TKey, GroupSize >::EndI(), TSparseTable< TKey, GroupSize >::Get(), TSparseTable< TKey, GroupSize >::GetGroup(), TSparseTable< TKey, GroupSize >::GetGrp1(), TSparseTable< TKey, GroupSize >::GetI(), TSparseTable< TKey, GroupSize >::GetMemUsed(), TSparseTable< TKey, GroupSize >::Groups(), TSparseTable< TKey, GroupSize >::IsEmpty(), TSparseTable< TKey, GroupSize >::Load(), TSparseTable< TVal, GroupSize >::operator<(), TSparseTable< TVal, GroupSize >::operator=(), TSparseTable< TVal, GroupSize >::operator==(), TSparseTable< TKey, GroupSize >::Save(), and TSparseTable< TVal, GroupSize >::Swap().
|
private |
Definition at line 315 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::Load(), TSparseTable< TVal, GroupSize >::operator=(), TSparseTable< TVal, GroupSize >::operator==(), TSparseTable< TKey, GroupSize >::Reserved(), TSparseTable< TKey, GroupSize >::Save(), and TSparseTable< TVal, GroupSize >::Swap().
|
private |
Definition at line 315 of file shash.h.
Referenced by TSparseTable< TKey, GroupSize >::Empty(), TSparseTable< TKey, GroupSize >::GetDiskSz(), TSparseTable< TKey, GroupSize >::GetMemUsed(), TSparseTable< TKey, GroupSize >::Len(), TSparseTable< TKey, GroupSize >::Load(), TSparseTable< TVal, GroupSize >::operator<(), TSparseTable< TVal, GroupSize >::operator=(), TSparseTable< TVal, GroupSize >::operator==(), TSparseTable< TKey, GroupSize >::Save(), and TSparseTable< TVal, GroupSize >::Swap().