|
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
|
Execution context. More...
#include <table.h>

Public Member Functions | |
| TTableContext () | |
| Default constructor. More... | |
| TTableContext (TSIn &SIn) | |
Loads TTableContext in binary from SIn. More... | |
| void | Load (TSIn &SIn) |
Loads TTableContext in binary from SIn. More... | |
| void | LoadShM (TShMIn &ShMIn) |
| Loads TTableContext using shared memory, the object is read only. More... | |
| void | Save (TSOut &SOut) |
Saves TTableContext in binary to SOut. More... | |
| TInt | AddStr (const TStr &Key) |
Adds string Key to the context, returns its KeyId. More... | |
| TStr | GetStr (const TInt &KeyId) const |
Returns a string with KeyId. More... | |
Protected Attributes | |
| TStrHash< TInt, TBigStrPool > | StringVals |
| StringPool - stores string data values and maps them to integers. More... | |
Friends | |
| class | TTable |
|
inline |
|
inline |
Loads TTableContext in binary from SIn.
Definition at line 189 of file table.h.
Adds string Key to the context, returns its KeyId.
Definition at line 199 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::AddKey(), and StringVals.

Returns a string with KeyId.
Definition at line 204 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::GetKey(), and StringVals.

|
inline |
Loads TTableContext in binary from SIn.
Definition at line 191 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::Load(), and StringVals.

|
inline |
Loads TTableContext using shared memory, the object is read only.
Definition at line 193 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::LoadShM(), and StringVals.

|
inline |
Saves TTableContext in binary to SOut.
Definition at line 197 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::Save(), and StringVals.

|
protected |
StringPool - stores string data values and maps them to integers.
Definition at line 182 of file table.h.
Referenced by AddStr(), TTable::AddStrVal(), TTable::BuildGraph(), TTable::ChangeContext(), TTable::ColConcat(), TTable::ColConcatConst(), TTable::GetContextKey(), TTable::GetContextMemUsedKB(), GetStr(), TTable::GetStr(), TTable::GetStrVal(), Load(), LoadShM(), TTable::PrintContextSize(), Save(), and TTable::StoreStrCol().