A dictionary for storing and retrieving macros.
More...
#include <tokenizer.h>
|
|
void | DumpAll () const |
| | Dump all macros to the console.
|
| |
| const char * | Get (const char *key) const |
| | Get the value associated with a macro key.
|
| |
| | MacroDict (size_t num_of_macro, const Macro *macros) |
| | Constructor to initialize the dictionary with macros.
|
| |
|
|
std::map< str8, const char *, cmp_str > | _dict |
| | Internal storage for macros.
|
| |
A dictionary for storing and retrieving macros.
◆ MacroDict()
| MacroDict::MacroDict |
( |
size_t | num_of_macro, |
|
|
const Macro * | macros ) |
Constructor to initialize the dictionary with macros.
- Parameters
-
| num_of_macro | The number of macros to initialize. |
| macros | An array of Macro structures. |
◆ Get()
| const char * MacroDict::Get |
( |
const char * | key | ) |
const |
Get the value associated with a macro key.
- Parameters
-
- Returns
- The value associated with the key.
The documentation for this class was generated from the following files: