Assignment Instruction (=). More...

#include <rprginstassign.h>

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

Public Member Functions

 RPrgInstAssignVar (RInterpreter *prg, const RString &name, RPrgVar *assign)
 
virtual void Run (RInterpreter *prg, RPrgOutput *o)
 
virtual ~RPrgInstAssignVar (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

RPrgVarAssign
 
RString Var
 

Detailed Description

Assignment Instruction (=).

The RPrgInstAssignRef provides a class for the assignment instruction.

Constructor & Destructor Documentation

RPrgInstAssignVar ( RInterpreter prg,
const RString name,
RPrgVar assign 
)

Construct a assignment instruction.

Parameters
prgProgram.
nameName of the variable.
assignWhat to assign. It is destroy by the instruction.
virtual ~RPrgInstAssignVar ( void  )
virtual

Destruct the assignment 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 assign to.

RPrgVar* Assign
private

What to assign.