"new" Instruction. More...

#include <rprginstassign.h>

Inheritance diagram for RPrgInstNew:
[legend]
Collaboration diagram for RPrgInstNew:
[legend]

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

RPrgClassClass
 
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
prgProgram.
nameName of the variable.
cClass of the variable.
initInitialization parameters.
virtual ~RPrgInstNew ( void  )
virtual

Destruct the "new" instruction.

Member Function Documentation

virtual void Run ( RInterpreter prg,
RPrgOutput o 
)
virtual

Run the instructions in the for for the different values of its variable.

Parameters
prgProgram.
oOutput.

Reimplemented from RPrgInst.

Member Data Documentation

RString Var
private

Variable to create.

RPrgClass* Class
private

Class of the variable.

RContainer<RPrgVar,true,false> Params
private

Parameters of the constructors.