#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 () |
| InstructionIfStatement (ReferenceCounting< BooleanExpression > b, ReferenceCounting< Instruction > first, ReferenceCounting< Instruction > second) | |
| InstructionIfStatement (const InstructionIfStatement &I) | |
| ~InstructionIfStatement () | |
| const Instruction::Type & | type () const |
Public Attributes | |
| ReferenceCounting < BooleanExpression > | __booleanExpression |
| ReferenceCounting< Instruction > | __firstStatement |
| ReferenceCounting< Instruction > | __secondStatement |
Protected Attributes | |
| const Instruction::Type | __type |
Definition at line 146 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 };
| InstructionIfStatement::InstructionIfStatement | ( | ReferenceCounting< BooleanExpression > | b, | |
| ReferenceCounting< Instruction > | first, | |||
| ReferenceCounting< Instruction > | second | |||
| ) | [inline] |
Definition at line 165 of file Instruction.hpp.
00168 : Instruction(Instruction::ifStatement), 00169 __booleanExpression(b), 00170 __firstStatement(first), 00171 __secondStatement(second) 00172 { 00173 ; 00174 }
| InstructionIfStatement::InstructionIfStatement | ( | const InstructionIfStatement & | I | ) | [inline] |
Definition at line 176 of file Instruction.hpp.
00177 : Instruction(I), 00178 __booleanExpression(I.__booleanExpression), 00179 __firstStatement(I.__firstStatement), 00180 __secondStatement(I.__secondStatement) 00181 { 00182 ; 00183 }
| InstructionIfStatement::~InstructionIfStatement | ( | ) | [inline] |
| void InstructionIfStatement::execute | ( | ) | [inline, virtual] |
Implements Instruction.
Definition at line 155 of file Instruction.hpp.
00156 { 00157 (*__booleanExpression).execute(); 00158 if ((*__booleanExpression).boolValue()) { 00159 (*__firstStatement).execute(); 00160 } else { 00161 (*__secondStatement).execute(); 00162 } 00163 }
| const Instruction::Type& Instruction::type | ( | ) | const [inline, inherited] |
Definition at line 81 of file Instruction.hpp.
References Instruction::__type.
00082 { 00083 return __type; 00084 }
Definition at line 150 of file Instruction.hpp.
Definition at line 151 of file Instruction.hpp.
Definition at line 152 of file Instruction.hpp.
const Instruction::Type Instruction::__type [protected, inherited] |
1.5.6