#include <Instruction.hpp>


Public Types | |
| typedef std::list < ReferenceCounting < Instruction > > | InstructionSet |
| 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 () |
| void | add (ReferenceCounting< Instruction > i) |
| InstructionList () | |
| InstructionList (const InstructionList &I) | |
| ~InstructionList () | |
| const Instruction::Type & | type () const |
Public Attributes | |
| InstructionSet | __instructions |
Protected Attributes | |
| const Instruction::Type | __type |
Definition at line 106 of file Instruction.hpp.
| typedef std::list<ReferenceCounting<Instruction> > InstructionList::InstructionSet |
Definition at line 110 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 };
| InstructionList::InstructionList | ( | ) | [inline] |
Definition at line 127 of file Instruction.hpp.
00128 : Instruction(Instruction::list) 00129 { 00130 ; 00131 }
| InstructionList::InstructionList | ( | const InstructionList & | I | ) | [inline] |
Definition at line 133 of file Instruction.hpp.
00134 : Instruction(I), 00135 __instructions(I.__instructions) 00136 { 00137 ; 00138 }
| InstructionList::~InstructionList | ( | ) | [inline] |
| void InstructionList::execute | ( | ) | [inline, virtual] |
Implements Instruction.
Definition at line 114 of file Instruction.hpp.
References __instructions.
00115 { 00116 for(InstructionSet::iterator i = __instructions.begin(); 00117 i != __instructions.end(); ++i) { 00118 (*i)->execute(); 00119 } 00120 }
| void InstructionList::add | ( | ReferenceCounting< Instruction > | i | ) | [inline] |
Definition at line 122 of file Instruction.hpp.
References __instructions.
00123 { 00124 __instructions.push_back(i); 00125 }
| 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