# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAISCRIPT::IOpType Class Reference

Class IOpType. More...

#include <type_def.h>

Inheritance diagram for NLAISCRIPT::IOpType:

NLAISCRIPT::IConstraint NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAISCRIPT::CConstraintStackComp NLAISCRIPT::COperandAnyObject NLAISCRIPT::COperandListType NLAISCRIPT::COperandSimple NLAISCRIPT::COperandSimpleListOr NLAISCRIPT::COperandUnknown NLAISCRIPT::COperandVoid NLAISCRIPT::COperationType NLAISCRIPT::COperationTypeGD List of all members.

Public Methods

 IOpType ()
virtual ~IOpType ()
Redefinition of base class method
virtual void run (IConstraint *)
 Run with a IConstraint dependency. More...

virtual void run (CCompilateur &)
 Run with a CCompilateur dependency. More...

virtual void addIndex (int i, CCodeBrancheRun *)
 Add a op-code dependency. More...

virtual void getError (char *) const
 get an error string when the constraint is'nt stisfied. More...

virtual int getLine () const
 get the line of the expression that it have to be resolve by constraint in the code source. More...

virtual int getColone () const
 get the colone of the expression that it have to be resolve by constraint in the code source. More...

double evalParam (IOpType *)
virtual double eval (IOpType *)

Static Public Methods

const IOpType * loadIOpType (NLMISC::IStream &f)
 Loader for IOpType. Not that we save and load an know type. More...


Detailed Description

Class IOpType.

It is an abstract class to define a type of an expression. Note that a type is a constraint where it can be computate when user want.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 43 of file type_def.h.


Constructor & Destructor Documentation

NLAISCRIPT::IOpType::IOpType   [inline]
 

Definition at line 47 of file type_def.h.

Referenced by NLAISCRIPT::COperandListType::add, NLAISCRIPT::COperationType::COperationType, NLAISCRIPT::COperationTypeGD::COperationTypeGD, loadIOpType, NLAISCRIPT::COperandListType::run, NLAISCRIPT::CConstraintStackComp::run, NLAISCRIPT::COperationType::setOperand, NLAISCRIPT::COperationTypeGD::setOperationD, and NLAISCRIPT::COperationTypeGD::setOperationG.

NLAISCRIPT::IOpType::~IOpType   [virtual]
 

Definition at line 30 of file type_def.cpp.


Member Function Documentation

virtual void NLAISCRIPT::IOpType::addIndex int    i,
CCodeBrancheRun  
[inline, virtual]
 

Add a op-code dependency.

the integer n is the index of the opcode in in the opcodePtr pointer.

Implements NLAISCRIPT::IConstraint.

Definition at line 55 of file type_def.h.

double NLAISCRIPT::IOpType::eval IOpType *    [virtual]
 

Reimplemented in NLAISCRIPT::COperandSimpleListOr.

Definition at line 76 of file type_def.cpp.

References evalParam, NLAISCRIPT::IConstraint::getConstraintTypeOf, NLAISCRIPT::l, NLAISCRIPT::IConstraint::operandSimpleListOr, and x.

double NLAISCRIPT::IOpType::evalParam IOpType *   
 

Definition at line 34 of file type_def.cpp.

References NLAISCRIPT::IConstraint::getConstraintTypeOf, NLAIC::CIdentType::getFactory, NLAIC::CTypeOfObject::tInterpret, and type.

Referenced by eval.

virtual int NLAISCRIPT::IOpType::getColone   const [inline, virtual]
 

get the colone of the expression that it have to be resolve by constraint in the code source.

Implements NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintStackComp.

Definition at line 58 of file type_def.h.

virtual void NLAISCRIPT::IOpType::getError char *    const [inline, virtual]
 

get an error string when the constraint is'nt stisfied.

Implements NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintStackComp.

Definition at line 56 of file type_def.h.

virtual int NLAISCRIPT::IOpType::getLine   const [inline, virtual]
 

get the line of the expression that it have to be resolve by constraint in the code source.

Implements NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintStackComp.

Definition at line 57 of file type_def.h.

const IOpType * NLAISCRIPT::IOpType::loadIOpType NLMISC::IStream   f [inline, static]
 

Loader for IOpType. Not that we save and load an know type.

Definition at line 984 of file type_def.h.

References NLAISCRIPT::IConstraint::constraintMethode, IOpType, NLAISCRIPT::IConstraint::operandAnyObject, NLAISCRIPT::IConstraint::operandSimple, NLAISCRIPT::IConstraint::operandSimpleListOr, NLAISCRIPT::IConstraint::operandVoid, NLMISC::IStream::serial, and x.

virtual void NLAISCRIPT::IOpType::run CCompilateur   [inline, virtual]
 

Run with a CCompilateur dependency.

Implements NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintStackComp.

Definition at line 54 of file type_def.h.

virtual void NLAISCRIPT::IOpType::run IConstraint   [inline, virtual]
 

Run with a IConstraint dependency.

Implements NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintStackComp.

Definition at line 53 of file type_def.h.

References NLAISCRIPT::IConstraint::IConstraint.


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