UnivesalDisassembler(2003)
|
Map of Table indexed by its name. (Builder) More...
#include <instrset.h>
Public Member Functions | |
Tables (Variables *v) | |
~Tables () | |
Table * | Add (string name) |
Add(name) creates new table (Table) and returns it. | |
AbstractTable *& | Add (string name, AbstractTable *table) |
Add(name, table) - useful for builtin tables. | |
AbstractTable *& | operator[] (string index) |
Returns appropriate table. Throws exception when table does not exist. | |
void | Reset () |
Resets all tables to their default values (because of lengths of the items) | |
void | Clear () |
Clears all tables from memory. | |
Public Attributes | |
Variables * | variables |
Map of Table indexed by its name. (Builder)
Definition at line 178 of file instrset.h.
Tables::Tables | ( | Variables * | v | ) | [inline] |
Definition at line 182 of file instrset.h.
Tables::~Tables | ( | ) |
Definition at line 409 of file instrset.cc.
Table * Tables::Add | ( | string | name | ) |
Add(name) creates new table (Table) and returns it.
Definition at line 420 of file instrset.cc.
References variables.
Referenced by Parser::Parse().
AbstractTable *& Tables::Add | ( | string | name, |
AbstractTable * | table | ||
) |
Add(name, table) - useful for builtin tables.
Definition at line 429 of file instrset.cc.
void Tables::Clear | ( | ) |
Clears all tables from memory.
Definition at line 454 of file instrset.cc.
AbstractTable *& Tables::operator[] | ( | string | index | ) |
Returns appropriate table. Throws exception when table does not exist.
Definition at line 438 of file instrset.cc.
void Tables::Reset | ( | ) |
Resets all tables to their default values (because of lengths of the items)
Definition at line 446 of file instrset.cc.
Referenced by Decoder::Decode().
Definition at line 181 of file instrset.h.
Referenced by Add().