"for" Instruction. More...
#include <rprginstfor.h>
Inheritance diagram for RPrgInstFor:
Collaboration diagram for RPrgInstFor:
Public Member Functions | |
RPrgInstFor (RInterpreter *prg, size_t t, const RString &var, RContainer< RPrgVar, false, false > &val) | |
virtual void | RunBlock (RInterpreter *prg, RPrgOutput *o) |
virtual | ~RPrgInstFor (void) |
Public Member Functions inherited from RPrgInstBlock | |
void | AddInst (RPrgInst *ins) |
void | AddVar (RPrgVar *var) |
void | ClearInstructions (void) |
void | DelVar (RPrgVar *var) |
size_t | GetDepth (void) const |
RPrgInstBlock (RInterpreter *prg, size_t depth) | |
virtual void | Run (RInterpreter *prg, RPrgOutput *o) |
virtual | ~RPrgInstBlock (void) |
Public Member Functions inherited from RPrgInst | |
int | Compare (const RPrgInst &t) const |
int | Compare (const RString &t) const |
size_t | GetLine (void) const |
RPrgInst (size_t line) | |
virtual | ~RPrgInst (void) |
Private Attributes | |
RContainer< RPrgVar, true, false > | Values |
RString | Var |
Additional Inherited Members | |
Protected Attributes inherited from RPrgInstBlock | |
size_t | Depth |
R::RContainer< RPrgInst, true, false > | Insts |
RPrgScope * | Vars |
Detailed Description
"for" Instruction.
The RPrgInstFor provides a class for a "for" instruction.
Constructor & Destructor Documentation
RPrgInstFor | ( | RInterpreter * | prg, |
size_t | t, | ||
const RString & | var, | ||
RContainer< RPrgVar, false, false > & | val | ||
) |
Construct a "for" instruction.
- Parameters
-
prg Program. t Indentation. var Name of the variable. val Values for the variable.
|
virtual |
Destruct the "for" instruction.
Member Function Documentation
|
virtual |
Run the instructions in the for for the different values of its variable.
- Parameters
-
prg Program. o Output.
Reimplemented from RPrgInstBlock.
Member Data Documentation
|
private |
Variable defined in the for.
|
private |
Values of the variable.