"new" Instruction. More...
#include <rprginstassign.h>
Inheritance diagram for RPrgInstNew:
Collaboration diagram for RPrgInstNew:
Public Member Functions | |
RPrgInstNew (RInterpreter *prg, const RString &name, RPrgClass *c, RContainer< RPrgVar, false, false > &init) | |
virtual void | Run (RInterpreter *prg, RPrgOutput *o) |
virtual | ~RPrgInstNew (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 | |
RPrgClass * | Class |
RContainer< RPrgVar, true, false > | Params |
RString | Var |
Detailed Description
"new" Instruction.
The RPrgInstNew provides a class for a "new" instruction.
Constructor & Destructor Documentation
RPrgInstNew | ( | RInterpreter * | prg, |
const RString & | name, | ||
RPrgClass * | c, | ||
RContainer< RPrgVar, false, false > & | init | ||
) |
Construct a "new" instruction.
- Parameters
-
prg Program. name Name of the variable. c Class of the variable. init Initialization parameters.
|
virtual |
Destruct the "new" 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 RPrgInst.
Member Data Documentation
|
private |
Variable to create.
|
private |
Class of the variable.
|
private |
Parameters of the constructors.