InstructionExit Class Reference

#include <Instruction.hpp>

Inheritance diagram for InstructionExit:

Inheritance graph
[legend]
Collaboration diagram for InstructionExit:

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 ()
 InstructionExit ()
 InstructionExit (ReferenceCounting< RealExpression > e)
 InstructionExit (const InstructionExit &I)
 ~InstructionExit ()
const Instruction::Typetype () const

Protected Attributes

const Instruction::Type __type

Private Attributes

ReferenceCounting< RealExpression__realExpression


Detailed Description

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

InstructionExit::InstructionExit (  )  [inline]

Definition at line 858 of file Instruction.hpp.

00859     : Instruction(Instruction::exitStatement),
00860       __realExpression(0)
00861   {
00862     ;
00863   }

InstructionExit::InstructionExit ( ReferenceCounting< RealExpression e  )  [inline]

Definition at line 865 of file Instruction.hpp.

00866     : Instruction(Instruction::exitStatement),
00867       __realExpression(e)
00868   {
00869     ;
00870   }

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

Definition at line 872 of file Instruction.hpp.

00873     : Instruction(I),
00874       __realExpression(I.__realExpression)
00875   {
00876     ;
00877   }

InstructionExit::~InstructionExit (  )  [inline]

Definition at line 879 of file Instruction.hpp.

00880   {
00881     ;
00882   }


Member Function Documentation

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

Implements Instruction.

Definition at line 845 of file Instruction.hpp.

References __realExpression, and ErrorHandler::asked.

00846   {
00847     if (__realExpression != 0) {
00848       __realExpression->execute();
00849       throw ErrorHandler(__FILE__,__LINE__,
00850                          "exit called (argument ignored)",
00851                          ErrorHandler::asked);
00852     }
00853     throw ErrorHandler(__FILE__,__LINE__,
00854                        "exit called",
00855                        ErrorHandler::asked);
00856   }

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