InstructionInput Class Reference

#include <Instruction.hpp>

Inheritance diagram for InstructionInput:

Inheritance graph
[legend]
Collaboration diagram for InstructionInput:

Collaboration graph
[legend]

List of all members.

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 ()
 InstructionInput (ReferenceCounting< IStreamExpression > i, ReferenceCounting< Expression > e)
 InstructionInput (const InstructionInput &I)
 ~InstructionInput ()
const Instruction::Typetype () const

Protected Attributes

const Instruction::Type __type

Private Attributes

ReferenceCounting
< IStreamExpression
__istream
ReferenceCounting< Expression__expression


Detailed Description

Definition at line 358 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

InstructionInput::InstructionInput ( ReferenceCounting< IStreamExpression i,
ReferenceCounting< Expression e 
) [inline]

Definition at line 373 of file Instruction.hpp.

00375     : Instruction(Instruction::input),
00376       __istream(i),
00377       __expression(e)
00378   {
00379     ;
00380   }

InstructionInput::InstructionInput ( const InstructionInput I  )  [inline]

Definition at line 382 of file Instruction.hpp.

00383     : Instruction(I),
00384       __istream(I.__istream),
00385       __expression(I.__expression)    
00386   {
00387     ;
00388   }

InstructionInput::~InstructionInput (  )  [inline]

Definition at line 390 of file Instruction.hpp.

00391   {
00392     ;
00393   }


Member Function Documentation

void InstructionInput::execute (  )  [inline, virtual]

Implements Instruction.

Definition at line 366 of file Instruction.hpp.

References __expression, and __istream.

00367   {
00368     __istream->execute();
00369     __expression->execute();
00370     *__istream >> *__expression;
00371   }

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 362 of file Instruction.hpp.

Referenced by execute().

Definition at line 363 of file Instruction.hpp.

Referenced by 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:04 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6