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

Class CConstraintMethode. More...

#include <constraint.h>

Inheritance diagram for NLAISCRIPT::CConstraintMethode

Inheritance graph
[legend]
Collaboration diagram for NLAISCRIPT::CConstraintMethode:

Collaboration graph
[legend]
List of all members.

Public Types

enum  TCallTypeOpCode {
  normalCall,
  stackCall,
  heapCall,
  newCall,
  searchCall
}
 This enum allow to define the way to call the method that the class have to find. More...


Public Methods

 CConstraintMethode (TCallTypeOpCode callType,int posHeap,IConstraint *baseClass,NLAIAGENT::IBaseGroupType *methodName,CParam *param,int lin,int col)
virtual ~CConstraintMethode ()
IConstraint method.
const char* getInfo ()
 Get a string info. More...

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

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

bool satisfied ()
 If the constraint is resolved. More...

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

bool operator== (const IConstraint &c) const
void addIndex (int i,CCodeBrancheRun *c)
 Add a op-code dependency. 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...

bool isEqual (const NLAIAGENT::IBaseGroupType &,const CParam &) const
virtual void setOpCode (CCompilateur &comp,IOpCode *x,IConstraint *cType,bool del)
const NLAIC::CIdentTypegetConstraintTypeOf ()
 Type of the expression that it have to be resolve by constraint. More...

virtual ConstraintTypeEnum getTypeOfClass () const
 get the type of class. the type must be in the ConstraintTypeEnum enumeration. More...

const CFunctionTaggetfunctionTag () const
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...


Protected Attributes

TCallTypeOpCode _CallType
 Type of search. More...

IConstraint_BaseClass
 Type of base class that constain method. A NULL value mean that method is in the last class parsed. More...

NLAIAGENT::IBaseGroupType_MethodName
 Hierarchy method name (a hierarchy name is some thing like classBaseName.className.methodName().). More...

CParam_Param
 Method argument. More...

bool _Satisfied
int _Lin
int _Col
std::list<std::pair<int, CCodeBrancheRun *> > _Code
char* _Txt
IConstraint_Type
char* _TxtInfo
int _PosHeap
bool _DelCType
CFunctionTag _M

Detailed Description

Class CConstraintMethode.

This class is allow to find method.

Author(s):
Chafik sameh , Nevrax France
Date:
2000

Definition at line 239 of file constraint.h.


Member Enumeration Documentation

enum NLAISCRIPT::CConstraintMethode::TCallTypeOpCode
 

This enum allow to define the way to call the method that the class have to find.

Later we use this enum to build the correct opcode.

Enumeration values:
normalCall   The call is normal. Base class that constain method is the self class.
stackCall   Call mehod from the stack. Base class that constain method is stored in the stack.
heapCall   Call mehod from the heap. Base class that constain method is stored in the heap.
newCall   Call constructor method.
searchCall   We juste search method.

Definition at line 247 of file constraint.h.


Constructor & Destructor Documentation

NLAISCRIPT::CConstraintMethode::CConstraintMethode ( TCallTypeOpCode callType,
int posHeap,
IConstraint * baseClass,
NLAIAGENT::IBaseGroupType * methodName,
CParam * param,
int lin,
int col ) [inline]
 

Definition at line 280 of file constraint.h.

NLAISCRIPT::CConstraintMethode::~CConstraintMethode ( ) [inline, virtual]
 

Definition at line 367 of file constraint.h.


Member Function Documentation

void NLAISCRIPT::CConstraintMethode::addIndex ( int i,
CCodeBrancheRun * c ) [inline, virtual]
 

Add a op-code dependency.

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 329 of file constraint.h.

const IConstraint * NLAISCRIPT::CConstraintMethode::clone ( void ) const [virtual]
 

Get a clone pointer memory.

Reimplemented from NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintFindRun.

Definition at line 321 of file constraint.cpp.

bool NLAISCRIPT::CConstraintMethode::dependOn ( const IConstraint * c ) const [inline, virtual]
 

If this constraint depond on other constraint.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 311 of file constraint.h.

int NLAISCRIPT::CConstraintMethode::getColone ( ) const [inline, virtual]
 

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 361 of file constraint.h.

const NLAIC::CIdentType * NLAISCRIPT::CConstraintMethode::getConstraintTypeOf ( ) [inline, virtual]
 

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 342 of file constraint.h.

void NLAISCRIPT::CConstraintMethode::getError ( char * txt ) const [virtual]
 

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 306 of file constraint.cpp.

const char * NLAISCRIPT::CConstraintMethode::getInfo ( ) [inline, virtual]
 

Get a string info.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 298 of file constraint.h.

int NLAISCRIPT::CConstraintMethode::getLine ( ) const [inline, virtual]
 

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 357 of file constraint.h.

ConstraintTypeEnum NLAISCRIPT::CConstraintMethode::getTypeOfClass ( ) const [inline, virtual]
 

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

Reimplemented from NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintFindRun.

Definition at line 347 of file constraint.h.

const CFunctionTag & NLAISCRIPT::CConstraintMethode::getfunctionTag ( ) const [inline]
 

Definition at line 352 of file constraint.h.

bool NLAISCRIPT::CConstraintMethode::isEqual ( const NLAIAGENT::IBaseGroupType & g,
const CParam & p ) const
 

Definition at line 311 of file constraint.cpp.

bool NLAISCRIPT::CConstraintMethode::operator== ( const IConstraint & c ) const [inline, virtual]
 

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 317 of file constraint.h.

void NLAISCRIPT::CConstraintMethode::run ( IConstraint * comp ) [virtual]
 

Run with a IConstraint dependency.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 317 of file constraint.cpp.

void NLAISCRIPT::CConstraintMethode::run ( CCompilateur & c ) [virtual]
 

Run with a CCompilateur dependency.

Reimplemented from NLAISCRIPT::IConstraint.

Reimplemented in NLAISCRIPT::CConstraintFindRun.

Definition at line 50 of file constraint.cpp.

bool NLAISCRIPT::CConstraintMethode::satisfied ( ) [inline, virtual]
 

If the constraint is resolved.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 306 of file constraint.h.

void NLAISCRIPT::CConstraintMethode::setOpCode ( CCompilateur & comp,
IOpCode * x,
IConstraint * cType,
bool del ) [virtual]
 

Reimplemented in NLAISCRIPT::CConstraintFindRun.

Definition at line 279 of file constraint.cpp.


Member Data Documentation

IConstraint * NLAISCRIPT::CConstraintMethode::_BaseClass [protected]
 

Type of base class that constain method. A NULL value mean that method is in the last class parsed.

Definition at line 263 of file constraint.h.

TCallTypeOpCode NLAISCRIPT::CConstraintMethode::_CallType [protected]
 

Type of search.

Definition at line 261 of file constraint.h.

std::list< std::pair< int,CCodeBrancheRun *> > NLAISCRIPT::CConstraintMethode::_Code [protected]
 

Definition at line 271 of file constraint.h.

int NLAISCRIPT::CConstraintMethode::_Col [protected]
 

Definition at line 270 of file constraint.h.

bool NLAISCRIPT::CConstraintMethode::_DelCType [protected]
 

Definition at line 276 of file constraint.h.

int NLAISCRIPT::CConstraintMethode::_Lin [protected]
 

Definition at line 269 of file constraint.h.

CFunctionTag NLAISCRIPT::CConstraintMethode::_M [protected]
 

Definition at line 277 of file constraint.h.

NLAIAGENT::IBaseGroupType * NLAISCRIPT::CConstraintMethode::_MethodName [protected]
 

Hierarchy method name (a hierarchy name is some thing like classBaseName.className.methodName().).

Definition at line 265 of file constraint.h.

CParam * NLAISCRIPT::CConstraintMethode::_Param [protected]
 

Method argument.

Definition at line 267 of file constraint.h.

int NLAISCRIPT::CConstraintMethode::_PosHeap [protected]
 

Definition at line 275 of file constraint.h.

bool NLAISCRIPT::CConstraintMethode::_Satisfied [protected]
 

Definition at line 268 of file constraint.h.

char * NLAISCRIPT::CConstraintMethode::_Txt [protected]
 

Definition at line 272 of file constraint.h.

char * NLAISCRIPT::CConstraintMethode::_TxtInfo [protected]
 

Definition at line 274 of file constraint.h.

IConstraint * NLAISCRIPT::CConstraintMethode::_Type [protected]
 

Definition at line 273 of file constraint.h.


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