HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_FSA Class Reference

#include <UT_FSA.h>

+ Inheritance diagram for UT_FSA:

Public Member Functions

 UT_FSA ()
 
 ~UT_FSA ()
 
bool build (const UT_StringArray &strings, const UT_IntArray &indices, int notfound_index=-1)
 
bool build (int ntokens, const ut_FSA_Token tokens[], int notfound_index=-1)
 
void clear ()
 
exint entries () const
 Return the size of the symbol table. More...
 
bool empty () const
 
int getNotFound () const
 Return the integer associated with entries not in the map. More...
 
int64 getMemoryUsage (bool inclusive) const
 
void dumpTables () const
 
void extractStrings (UT_StringArray &list) const
 
int findSymbol (const char *symbol) const
 
int findSymbol (const UT_StringView &symbol) const
 
bool contains (const char *symbol) const
 
bool count (const char *symbol) const
 

Additional Inherited Members

- Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable
 UT_NonCopyable ()=default
 
 ~UT_NonCopyable ()=default
 
 UT_NonCopyable (const UT_NonCopyable &)=delete
 
UT_NonCopyableoperator= (const UT_NonCopyable &)=delete
 

Detailed Description

Definition at line 55 of file UT_FSA.h.

Constructor & Destructor Documentation

UT_FSA::UT_FSA ( )
UT_FSA::~UT_FSA ( )

Member Function Documentation

bool UT_FSA::build ( const UT_StringArray strings,
const UT_IntArray indices,
int  notfound_index = -1 
)
bool UT_FSA::build ( int  ntokens,
const ut_FSA_Token  tokens[],
int  notfound_index = -1 
)
void UT_FSA::clear ( )
bool UT_FSA::contains ( const char *  symbol) const
inline

Return whether a symbol exists

Definition at line 84 of file UT_FSA.h.

bool UT_FSA::count ( const char *  symbol) const
inline

Return whether a symbol exists

Definition at line 86 of file UT_FSA.h.

void UT_FSA::dumpTables ( ) const
bool UT_FSA::empty ( void  ) const
inline

Definition at line 70 of file UT_FSA.h.

exint UT_FSA::entries ( void  ) const
inline

Return the size of the symbol table.

Definition at line 68 of file UT_FSA.h.

void UT_FSA::extractStrings ( UT_StringArray list) const
int UT_FSA::findSymbol ( const char *  symbol) const

Find a symbol in the map, returning the integer value associated with the key.

int UT_FSA::findSymbol ( const UT_StringView symbol) const

Find a symbol in the map, returning the integer value associated with the key.

int64 UT_FSA::getMemoryUsage ( bool  inclusive) const
int UT_FSA::getNotFound ( ) const
inline

Return the integer associated with entries not in the map.

Definition at line 80 of file UT_FSA.h.


The documentation for this class was generated from the following file: