#include <TokenTypeMap.hpp>
Inheritance diagram for Ionflux::Tools::TokenTypeMap:
Public Member Functions | |
TokenTypeMap () | |
Constructor. | |
virtual | ~TokenTypeMap () |
Destructor. | |
virtual void | addTokenType (const TokenType &newTokenType) |
Add token type. | |
virtual void | removeTokenType (const TokenType &removeTokenType) |
Remove token type. | |
virtual TokenType | getTokenType (unsigned char testChar) const |
Get token type. | |
virtual void | addTokenTypeAnything (const TokenType &newTokenType) |
Add special token type 'anything'. | |
virtual void | clear () |
Clear map. | |
virtual unsigned int | getNumTokenTypes () const |
Get number of token types. | |
Static Public Attributes | |
static const unsigned int | TYPE_MAP_SIZE = 256 |
Size of token type lookup map. | |
Protected Attributes | |
TokenType ** | typeMap |
Token type lookup map. | |
std::vector< TokenType * > | types |
Token types. |
A lookup map for mapping bytes to token types.
|
Constructor. Construct new TokenTypeMap object. |
|
Destructor. Destruct TokenTypeMap object. |
|
Add token type. Add a token type to the map.
|
|
Add special token type 'anything'. Add special token type 'anything' to the map. The 'anything' token type matches any character that is not matched by another token in the current setup.
|
|
Clear map. Clears all entries from the token type map. |
|
Get number of token types.
|
|
Get token type. Perform a token type lookup for the specified character.
|
|
Remove token type. Remove a token type from the map.
|
|
Size of token type lookup map.
|
|
Token type lookup map.
|
|
Token types.
|