#include <Instruction.hpp>


Public Types | |
| enum | Type { list, ifStatement, doWhileStatement, whileStatement, forStatement, exitStatement, coarseMesh, declaration, affectation, increment, input, decrement, evaluation, blockBegin, blockEnd, output, Using, exec, cat, plot, save, none } |
Public Member Functions | |
| void | execute () |
| InstructionAffectation (const std::string &variableName, ReferenceCounting< DataType > e) | |
| InstructionAffectation (const InstructionAffectation< DataType, VarType > &I) | |
| ~InstructionAffectation () | |
| const Instruction::Type & | type () const |
Protected Attributes | |
| const Instruction::Type | __type |
Private Attributes | |
| std::string | __variableName |
| ReferenceCounting< DataType > | __expression |
Definition at line 640 of file Instruction.hpp.
enum Instruction::Type [inherited] |
Definition at line 49 of file Instruction.hpp.
00049 { 00050 list, 00051 ifStatement, 00052 doWhileStatement, 00053 whileStatement, 00054 forStatement, 00055 exitStatement, 00056 coarseMesh, 00057 00058 declaration, 00059 affectation, 00060 increment, 00061 input, 00062 decrement, 00063 evaluation, 00064 00065 blockBegin, 00066 blockEnd, 00067 00068 output, 00069 Using, 00070 exec, 00071 cat, 00072 plot, 00073 save, 00074 none 00075 };
| InstructionAffectation< DataType, VarType >::InstructionAffectation | ( | const std::string & | variableName, | |
| ReferenceCounting< DataType > | e | |||
| ) | [inline] |
Definition at line 656 of file Instruction.hpp.
00658 : Instruction(Instruction::affectation), 00659 __variableName(variableName), 00660 __expression(e) 00661 { 00662 ; 00663 }
| InstructionAffectation< DataType, VarType >::InstructionAffectation | ( | const InstructionAffectation< DataType, VarType > & | I | ) | [inline] |
Definition at line 665 of file Instruction.hpp.
00666 : Instruction(I), 00667 __variableName(I.__variableName), 00668 __expression(I.__expression) 00669 { 00670 ; 00671 }
| InstructionAffectation< DataType, VarType >::~InstructionAffectation | ( | ) | [inline] |
| void InstructionAffectation< DataType, VarType >::execute | ( | ) | [inline, virtual] |
Implements Instruction.
Definition at line 648 of file Instruction.hpp.
References InstructionAffectation< DataType, VarType >::__expression, InstructionAffectation< DataType, VarType >::__variableName, VariableRepository::findVariable(), and StaticBase< VariableRepository >::instance().
00649 { 00650 __expression->execute(); 00651 00652 VarType* V = VariableRepository::instance().findVariable<VarType>(__variableName); 00653 (*V) = __expression; 00654 }

| const Instruction::Type& Instruction::type | ( | ) | const [inline, inherited] |
Definition at line 81 of file Instruction.hpp.
References Instruction::__type.
00082 { 00083 return __type; 00084 }
std::string InstructionAffectation< DataType, VarType >::__variableName [private] |
Definition at line 644 of file Instruction.hpp.
Referenced by InstructionAffectation< DataType, VarType >::execute(), and InstructionAffectation< FunctionExpression, FunctionVariable >::execute().
ReferenceCounting<DataType> InstructionAffectation< DataType, VarType >::__expression [private] |
Definition at line 645 of file Instruction.hpp.
Referenced by InstructionAffectation< DataType, VarType >::execute(), and InstructionAffectation< FunctionExpression, FunctionVariable >::execute().
const Instruction::Type Instruction::__type [protected, inherited] |
1.5.6