# 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::CConstraintChkMethodeType Class Reference

Class CConstraintChkMethodeType is use when we have an undefined method return type, but when the type can be compute after the parsing. More...

#include <constraint_type.h>

Inheritance diagram for NLAISCRIPT::CConstraintChkMethodeType:

NLAISCRIPT::IConstraint NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CConstraintChkMethodeType (IConstraint *constraint, int lin, int col)
virtual ~CConstraintChkMethodeType ()
IConstraint method.
bool satisfied ()
 If the constraint is resolved. More...

const char * getInfo ()
 Get a string info. More...

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

void run (IConstraint *)
 Run with a IConstraint dependency. More...

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

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

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

bool dependOn (const IConstraint *c) const
 If this constraint depond on other constraint. More...

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

const IConstraintclone () const
 Get a clone pointer memory. More...

const NLAIC::CIdentTypegetConstraintTypeOf ()
 Type of the expression that it have to be resolve by constraint. More...

bool operator== (const IConstraint &) const
ConstraintTypeEnum getTypeOfClass () const
 get the type of class. the type must be in the ConstraintTypeEnum enumeration. More...


Private Attributes

NLAIC::CIdentType_Ident
 Type of expression after the constraint is resolve. More...

IConstraint_Constraint
 Type of unresolving expression. More...

bool _RunIsDone
Attribut need for IConstraint method.
bool _Satisfied
int _Lin
int _Col
char * _TxtInfo

Detailed Description

Class CConstraintChkMethodeType is use when we have an undefined method return type, but when the type can be compute after the parsing.

This happened for exemple if we write 'return Something();'. Where Something() is a method memeber not already defined.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 39 of file constraint_type.h.


Constructor & Destructor Documentation

NLAISCRIPT::CConstraintChkMethodeType::CConstraintChkMethodeType IConstraint   constraint,
int    lin,
int    col
 

Definition at line 29 of file constraint_type.cpp.

References _Constraint, _Ident, _RunIsDone, _TxtInfo, getInfo, NLAISCRIPT::IConstraint::IConstraint, and NLAIC::stringGetBuild.

Referenced by clone, and operator==.

NLAISCRIPT::CConstraintChkMethodeType::~CConstraintChkMethodeType   [virtual]
 

Definition at line 85 of file constraint_type.cpp.

References _Constraint, _RunIsDone, and _TxtInfo.


Member Function Documentation

void NLAISCRIPT::CConstraintChkMethodeType::addIndex int    i,
CCodeBrancheRun   c
[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 76 of file constraint_type.cpp.

const IConstraint * NLAISCRIPT::CConstraintChkMethodeType::clone   const [virtual]
 

Get a clone pointer memory.

Implements NLAISCRIPT::IConstraint.

Definition at line 41 of file constraint_type.cpp.

References _Col, _Constraint, _Lin, CConstraintChkMethodeType, NLAISCRIPT::IConstraint::IConstraint, and x.

bool NLAISCRIPT::CConstraintChkMethodeType::dependOn const IConstraint   c const [inline, virtual]
 

If this constraint depond on other constraint.

Implements NLAISCRIPT::IConstraint.

Definition at line 83 of file constraint_type.h.

References _Constraint, and NLAISCRIPT::IConstraint::IConstraint.

int NLAISCRIPT::CConstraintChkMethodeType::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.

Definition at line 78 of file constraint_type.h.

References _Col.

const NLAIC::CIdentType* NLAISCRIPT::CConstraintChkMethodeType::getConstraintTypeOf   [inline, virtual]
 

Type of the expression that it have to be resolve by constraint.

Implements NLAISCRIPT::IConstraint.

Definition at line 92 of file constraint_type.h.

void NLAISCRIPT::CConstraintChkMethodeType::getError char *    const [virtual]
 

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

Implements NLAISCRIPT::IConstraint.

Definition at line 80 of file constraint_type.cpp.

References _TxtInfo.

const char* NLAISCRIPT::CConstraintChkMethodeType::getInfo   [inline, virtual]
 

Get a string info.

Implements NLAISCRIPT::IConstraint.

Definition at line 65 of file constraint_type.h.

References _TxtInfo.

Referenced by CConstraintChkMethodeType.

int NLAISCRIPT::CConstraintChkMethodeType::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.

Definition at line 74 of file constraint_type.h.

References _Lin.

ConstraintTypeEnum NLAISCRIPT::CConstraintChkMethodeType::getTypeOfClass   const [inline, virtual]
 

get the type of class. the type must be in the ConstraintTypeEnum enumeration.

Implements NLAISCRIPT::IConstraint.

Definition at line 99 of file constraint_type.h.

References NLAISCRIPT::IConstraint::constraintChkMethodeType, and NLAISCRIPT::IConstraint::ConstraintTypeEnum.

Referenced by operator==.

bool NLAISCRIPT::CConstraintChkMethodeType::operator== const IConstraint   const [virtual]
 

Implements NLAISCRIPT::IConstraint.

Definition at line 67 of file constraint_type.cpp.

References _Constraint, CConstraintChkMethodeType, and getTypeOfClass.

void NLAISCRIPT::CConstraintChkMethodeType::run IConstraint   [virtual]
 

Run with a IConstraint dependency.

Implements NLAISCRIPT::IConstraint.

Definition at line 57 of file constraint_type.cpp.

References _Constraint, _Ident, and _RunIsDone.

void NLAISCRIPT::CConstraintChkMethodeType::run CCompilateur   [virtual]
 

Run with a CCompilateur dependency.

Implements NLAISCRIPT::IConstraint.

Definition at line 47 of file constraint_type.cpp.

References _Constraint, _Ident, and NLAISCRIPT::IConstraint::runConnexcion.

bool NLAISCRIPT::CConstraintChkMethodeType::satisfied   [inline, virtual]
 

If the constraint is resolved.

Implements NLAISCRIPT::IConstraint.

Definition at line 60 of file constraint_type.h.

References _Satisfied.


Member Data Documentation

int NLAISCRIPT::CConstraintChkMethodeType::_Col [private]
 

Definition at line 50 of file constraint_type.h.

Referenced by clone, and getColone.

IConstraint* NLAISCRIPT::CConstraintChkMethodeType::_Constraint [private]
 

Type of unresolving expression.

Definition at line 45 of file constraint_type.h.

Referenced by CConstraintChkMethodeType, clone, dependOn, operator==, run, and ~CConstraintChkMethodeType.

NLAIC::CIdentType* NLAISCRIPT::CConstraintChkMethodeType::_Ident [private]
 

Type of expression after the constraint is resolve.

Definition at line 43 of file constraint_type.h.

Referenced by CConstraintChkMethodeType, and run.

int NLAISCRIPT::CConstraintChkMethodeType::_Lin [private]
 

Definition at line 49 of file constraint_type.h.

Referenced by clone, and getLine.

bool NLAISCRIPT::CConstraintChkMethodeType::_RunIsDone [private]
 

Definition at line 53 of file constraint_type.h.

Referenced by CConstraintChkMethodeType, run, and ~CConstraintChkMethodeType.

bool NLAISCRIPT::CConstraintChkMethodeType::_Satisfied [private]
 

Definition at line 48 of file constraint_type.h.

Referenced by satisfied.

char* NLAISCRIPT::CConstraintChkMethodeType::_TxtInfo [private]
 

Definition at line 51 of file constraint_type.h.

Referenced by CConstraintChkMethodeType, getError, getInfo, and ~CConstraintChkMethodeType.


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