#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 () |
| InstructionForStatement (ReferenceCounting< Instruction > a, ReferenceCounting< BooleanExpression > b, ReferenceCounting< Instruction > c, ReferenceCounting< Instruction > statement) | |
| InstructionForStatement (const InstructionForStatement &I) | |
| ~InstructionForStatement () | |
| const Instruction::Type & | type () const |
Public Attributes | |
| ReferenceCounting< Instruction > | __instruction1 |
| ReferenceCounting < BooleanExpression > | __booleanExpression |
| ReferenceCounting< Instruction > | __instruction2 |
| ReferenceCounting< Instruction > | __statement |
Protected Attributes | |
| const Instruction::Type | __type |
Definition at line 230 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 };
| InstructionForStatement::InstructionForStatement | ( | ReferenceCounting< Instruction > | a, | |
| ReferenceCounting< BooleanExpression > | b, | |||
| ReferenceCounting< Instruction > | c, | |||
| ReferenceCounting< Instruction > | statement | |||
| ) | [inline] |
Definition at line 251 of file Instruction.hpp.
00255 : Instruction(Instruction::forStatement), 00256 __instruction1(a), 00257 __booleanExpression(b), 00258 __instruction2(c), 00259 __statement(statement) 00260 { 00261 ; 00262 }
| InstructionForStatement::InstructionForStatement | ( | const InstructionForStatement & | I | ) | [inline] |
Definition at line 264 of file Instruction.hpp.
00265 : Instruction(I), 00266 __instruction1(I.__instruction1), 00267 __booleanExpression(I.__booleanExpression), 00268 __instruction2(I.__instruction2), 00269 __statement(I.__statement) 00270 { 00271 ; 00272 }
| InstructionForStatement::~InstructionForStatement | ( | ) | [inline] |
| void InstructionForStatement::execute | ( | ) | [inline, virtual] |
Implements Instruction.
Definition at line 240 of file Instruction.hpp.
References __booleanExpression, __instruction1, __instruction2, and __statement.
00241 { 00242 for (__instruction1->execute(); 00243 __booleanExpression->execute(), 00244 __booleanExpression->boolValue(); 00245 __instruction2->execute()) 00246 { 00247 __statement->execute(); 00248 } 00249 }
| 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 Instruction::Type Instruction::__type [protected, inherited] |
1.5.6