Generic Instruction. More...
#include <rprginst.h>
Inheritance diagram for RPrgInst:
Public Member Functions | |
int | Compare (const RPrgInst &t) const |
int | Compare (const RString &t) const |
size_t | GetLine (void) const |
RPrgInst (size_t line) | |
virtual void | Run (RInterpreter *prg, RPrgOutput *o) |
virtual | ~RPrgInst (void) |
Private Attributes | |
size_t | Line |
Detailed Description
Generic Instruction.
The RPrgInst provides a class for a generic instruction.
The Compare methods needed by R::RContainer are implemented so that it is impossible to construct an ordered container of instructions.
Constructor & Destructor Documentation
RPrgInst | ( | size_t | line | ) |
Construct a generic instruction.
- Parameters
-
line Line.
|
virtual |
Destruct the generic instruction.
Member Function Documentation
int Compare | ( | const RPrgInst & | t | ) | const |
int Compare | ( | const RString & | t | ) | const |
size_t GetLine | ( | void | ) | const |
Get the line number of the instruction.
|
virtual |
Run the instruction.
- Parameters
-
prg Program. o Output.
Reimplemented in RPrgInstAssignVar, RPrgInstBlock, RPrgInstMethod, RPrgInstNew, RPrgInstDelete, and RPrgInstPrint.
Member Data Documentation
|
private |
Line in the source file.