InstructionList Class Reference

#include <Instruction.hpp>

Inheritance diagram for InstructionList:

Inheritance graph
[legend]
Collaboration diagram for InstructionList:

Collaboration graph
[legend]

List of all members.

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::Typetype () const

Public Attributes

InstructionSet __instructions

Protected Attributes

const Instruction::Type __type


Detailed Description

Definition at line 106 of file Instruction.hpp.


Member Typedef Documentation

Definition at line 110 of file Instruction.hpp.


Member Enumeration Documentation

enum Instruction::Type [inherited]

Enumerator:
list 
ifStatement 
doWhileStatement 
whileStatement 
forStatement 
exitStatement 
coarseMesh 
declaration 
affectation 
increment 
input 
decrement 
evaluation 
blockBegin 
blockEnd 
output 
Using 
exec 
cat 
plot 
save 
none 

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   };


Constructor & Destructor Documentation

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]

Definition at line 140 of file Instruction.hpp.

00141   {
00142     ;
00143   }


Member Function Documentation

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   }


Member Data Documentation

Definition at line 111 of file Instruction.hpp.

Referenced by add(), and execute().

const Instruction::Type Instruction::__type [protected, inherited]

Definition at line 78 of file Instruction.hpp.

Referenced by Instruction::type().


The documentation for this class was generated from the following file:

Generated on Wed Nov 19 00:08:05 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6