HDK
|
#include <UT_FSATable.h>
Public Member Functions | |
UT_FSATableT () | |
Empty table constructor. More... | |
template<typename... Args> | |
UT_FSATableT (T token, const char *symbol, Args...args) | |
const char * | getToken (T token) const |
int64 | getMemUsage () const |
Returns the memory usage of this object. More... | |
void | extractStrings (UT_StringArray &list) const |
Extract all strings. More... | |
T | findSymbol (const char *symbol) const |
T | findSymbol (const UT_StringView &symbol) const |
T | findSymbol (const UT_String &symbol) const |
T | findSymbol (const UT_StringRef &symbol) const |
bool | contains (const char *symbol) const |
int | count (const char *symbol) const |
Definition at line 19 of file UT_FSATable.h.
|
inline |
Empty table constructor.
Definition at line 23 of file UT_FSATable.h.
|
inline |
Create a new token map. Variadic arguments are provided as pairs - for example: UT_FSATableT map(1, "one", 2, "two");
Definition at line 31 of file UT_FSATable.h.
|
inline |
Return whether a symbol exists
Definition at line 82 of file UT_FSATable.h.
|
inline |
Return whether a symbol exists
Definition at line 84 of file UT_FSATable.h.
|
inline |
Extract all strings.
Definition at line 77 of file UT_FSATable.h.
|
inline |
Find the integer id corresponding to the symbol. Returns DEFAULT_TOKEN if not found
Definition at line 40 of file UT_FSATable.h.
|
inline |
Find the integer id corresponding to the symbol. Returns DEFAULT_TOKEN if not found
Definition at line 47 of file UT_FSATable.h.
|
inline |
Find the integer id corresponding to the symbol. Returns DEFAULT_TOKEN if not found
Definition at line 54 of file UT_FSATable.h.
|
inline |
Find the integer id corresponding to the symbol. Returns DEFAULT_TOKEN if not found
Definition at line 56 of file UT_FSATable.h.
|
inline |
Returns the memory usage of this object.
Definition at line 72 of file UT_FSATable.h.
|
inline |
Return the name associated with the integer id. If there are duplicate strings which map to the same id, the first string will be returned. Returns NULL if not valid
Definition at line 63 of file UT_FSATable.h.