#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 () |
| InstructionDeclaration (const std::string name, ReferenceCounting< DataType > e) | |
| ~InstructionDeclaration () | |
| const Instruction::Type & | type () const |
Protected Attributes | |
| const Instruction::Type | __type |
Private Attributes | |
| const std::string | __name |
| ReferenceCounting< DataType > | __expression |
Definition at line 602 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 };
| InstructionDeclaration< DataType, VarType >::InstructionDeclaration | ( | const std::string | name, | |
| ReferenceCounting< DataType > | e | |||
| ) | [inline] |
Definition at line 623 of file Instruction.hpp.
00625 : Instruction(Instruction::declaration), 00626 __name(name), 00627 __expression(e) 00628 { 00629 ; 00630 }
| InstructionDeclaration< DataType, VarType >::~InstructionDeclaration | ( | ) | [inline] |
| void InstructionDeclaration< DataType, VarType >::execute | ( | ) | [inline, virtual] |
Implements Instruction.
Definition at line 610 of file Instruction.hpp.
References InstructionDeclaration< DataType, VarType >::__expression, InstructionDeclaration< DataType, VarType >::__name, VariableRepository::add(), VariableRepository::findVariable(), and StaticBase< VariableRepository >::instance().
00611 { 00612 ReferenceCounting<Variable> a 00613 = new VarType(__name, __expression); 00614 VariableRepository::instance().add(a); 00615 00616 ReferenceCounting<VarType> V 00617 = VariableRepository::instance().findVariable<VarType>(__name); 00618 00619 __expression->execute(); 00620 (*V) = __expression; 00621 }

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