#include <InstructionDescription.h>
Public Member Functions | |
InstructionDescription (string const &nameArg, vector< RegDesc > const ®isterdescArg, InstructionCreateFunction createFnArg) | |
void | setName (string const &s) |
string | getName () const |
Private Types | |
typedef Instruction *(*) | InstructionCreateFunction (vector< RegisterReference * > const &) |
InstructionCreateFunction is a pointer to the create() public member function supported by all Instructions. | |
Private Attributes | |
string | name |
vector< RegDesc > | registerdesc |
InstructionCreateFunction | createFn |
Instruction * | inst |
TProgramCounter | pc |
(Contrasted with an ExtendedInstruction.)
Definition at line 78 of file InstructionDescription.h.
typedef Instruction*(*) InstructionDescription::InstructionCreateFunction(vector< RegisterReference * > const &) [private] |
InstructionCreateFunction is a pointer to the create() public member function supported by all Instructions.
Definition at line 84 of file InstructionDescription.h.
InstructionDescription::InstructionDescription | ( | string const & | nameArg, | |
vector< RegDesc > const & | registerdescArg, | |||
InstructionCreateFunction | createFnArg | |||
) | [inline, explicit] |
Definition at line 88 of file InstructionDescription.h.
00091 : 00092 name(nameArg), 00093 registerdesc(registerdescArg), 00094 createFn(createFnArg) 00095 { 00096 }
void InstructionDescription::setName | ( | string const & | s | ) | [inline] |
string InstructionDescription::getName | ( | ) | const [inline] |
string InstructionDescription::name [private] |
Definition at line 109 of file InstructionDescription.h.
vector<RegDesc> InstructionDescription::registerdesc [private] |
Definition at line 110 of file InstructionDescription.h.
Definition at line 111 of file InstructionDescription.h.
Instruction* InstructionDescription::inst [private] |
Definition at line 112 of file InstructionDescription.h.
TProgramCounter InstructionDescription::pc [private] |
Definition at line 113 of file InstructionDescription.h.