Main Page   Alphabetical List   Compound List   File List   Compound Members  

fem::femParser Class Reference

provides the syntaxical analysis. More...

#include <femParser.hpp>

List of all members.

Methods

void parse ()
 parse the buffer.

void chvar (void)
noeudPtr instruction (void)
creal eval (noeudPtr)
 evaluate the node.

void bucheron (noeudPtr)
 kill the node.

void libere (void)
 free everything.

void showtree (noeudPtr t)
 show the tree.

void initsyntax ()
 initialise the parser.

void libereparam (void)
 free the parameters.

void initparam ()
 init the parameters.

femMeshCptr getMesh () const
 get the mesh.

femParser * New ()
 create a new instance.


Methods

void parse ()
 parse the buffer.

void chvar (void)
noeudPtr instruction (void)
creal eval (noeudPtr)
 evaluate the node.

void bucheron (noeudPtr)
 kill the node.

void libere (void)
 free everything.

void showtree (noeudPtr t)
 show the tree.

void initsyntax ()
 initialise the parser.

void libereparam (void)
 free the parameters.

void initparam ()
 init the parameters.

femMeshCptr getMesh () const
 get the mesh.

femParser * New ()
 create a new instance.


Public Types

Enums
enum  GraphicsType { FEM_GRAPHIC = 0, FEM_NO_GRAPHIC }
 graphics type. More...

Enums
enum  GraphicsType { FEM_GRAPHIC = 0, FEM_NO_GRAPHIC }
 graphics type. More...


Public Methods

Constructors and destructor
 femParser ()
 ~femParser ()
 destructor.

Mutators
void setGraphicType (GraphicsType gt)
 set the graphic type.

void setText (const char *__t)
 set the buffer to be parsed.

Constructors and destructor
 femParser ()
 ~femParser ()
 destructor.

Mutators
void setGraphicType (GraphicsType gt)
 set the graphic type.

void setText (const char *__t)
 set the buffer to be parsed.


Detailed Description

provides the syntaxical analysis.

The syntaxic analyser works closely with the lexical analyser.

Author:
Christophe Prud'homme <prudhomm@ann.jussieu.fr>
Version:
Id:
femParser.hpp,v 1.3 2001/07/12 15:15:39 delpinux Exp


Member Enumeration Documentation

enum fem::femParser::GraphicsType
 

graphics type.

Enumeration values:
FEM_GRAPHIC   show the graphics.
FEM_NO_GRAPHIC   do not show the graphics.
00101     {
00102       FEM_GRAPHIC    = 0, 
00103       FEM_NO_GRAPHIC = 1  
00104     };

enum fem::femParser::GraphicsType
 

graphics type.

Enumeration values:
FEM_GRAPHIC   show the graphics.
FEM_NO_GRAPHIC   do not show the graphics.
00101     {
00102       FEM_GRAPHIC    = 0, 
00103       FEM_NO_GRAPHIC = 1  
00104     };


Constructor & Destructor Documentation

fem::femParser::femParser  
 

Parameters:
__t   string to be parsed by the analyser
00124   :
00125   __tree(),
00126   __function_list(),
00127   __mesh(),
00128   __graph( new femGraphicDeviceIndependent( &__mesh ) ),
00129   pt( 0 ),
00130   nbsd( 0 ),
00131   nbs( 0 ),
00132   nba( 0 ),
00133   Iter( 1 ),
00134   waitm( 0 ),
00135   __text( 0 ),
00136   __graphic_type( FEM_GRAPHIC )
00137 {
00138   numnoeuds = 0;
00139   waitm = 1;
00140   pt = NULL;
00141   noeuds = new noeudPtr[MAXTREENODES];
00142   sd = new long[2*MAXSD];
00143   arete = new long[2 * MAXBDYVERTEX];
00144   ngbdy = new int[MAXBDYVERTEX];
00145   cr = new float[2*MAXBDYVERTEX+1];
00146   hh = new float[MAXBDYVERTEX];
00147   memset (hh, 0, MAXBDYVERTEX*sizeof(float));
00148   flag.si = 0;
00149   flag.syst = 0;
00150   flag.param = 0;
00151   flag.complexe = 0;
00152   flag.precise = 0;
00153 }

fem::femParser::femParser  
 

Parameters:
__t   string to be parsed by the analyser


The documentation for this class was generated from the following files:
This is the FreeFEM reference manual
Provided by The KFEM project