|
|
|
|
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 ReferenceClass CConstraintMethode.
More...
#include <constraint.h>
Inheritance diagram for NLAISCRIPT::CConstraintMethode:
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 () |
|
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 IConstraint * | clone () 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::CIdentType * | getConstraintTypeOf () |
| 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 CFunctionTag & | getfunctionTag () 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:
-
Chafik sameh , Nevrax France
-
Date:
-
2000
Definition at line 241 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 249 of file constraint.h.
Referenced by CConstraintMethode. |
Constructor & Destructor Documentation
|
Definition at line 282 of file constraint.h.
References _CallType, _Col, _DelCType, _Lin, _Param, _PosHeap, _Satisfied, _Txt, _TxtInfo, NLAIC::IBasicType::getDebugString, NLAISCRIPT::IConstraint::IConstraint, param, NLAIC::stringGetBuild, and TCallTypeOpCode.
Referenced by clone, and operator==. |
virtual NLAISCRIPT::CConstraintMethode::~CConstraintMethode |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
void NLAISCRIPT::CConstraintMethode::addIndex |
( |
int |
i, |
|
|
CCodeBrancheRun * |
c |
|
) |
[inline, virtual] |
|
const IConstraint * NLAISCRIPT::CConstraintMethode::clone |
( |
|
) |
const [virtual] |
|
|
Get a clone pointer memory.
Implements NLAISCRIPT::IConstraint.
Reimplemented in NLAISCRIPT::CConstraintFindRun.
Definition at line 332 of file constraint.cpp.
References _BaseClass, _CallType, _Col, _Lin, _MethodName, _Param, _PosHeap, CConstraintMethode, NLAISCRIPT::IConstraint::IConstraint, NLAIC::IPointerGestion::incRef, and x. |
bool NLAISCRIPT::CConstraintMethode::dependOn |
( |
const IConstraint * |
c |
) |
const [inline, virtual] |
|
int NLAISCRIPT::CConstraintMethode::getColone |
( |
|
) |
const [inline, virtual] |
|
const NLAIC::CIdentType* NLAISCRIPT::CConstraintMethode::getConstraintTypeOf |
( |
|
) |
[inline, virtual] |
|
void NLAISCRIPT::CConstraintMethode::getError |
( |
char * |
|
) |
const [virtual] |
|
const CFunctionTag& NLAISCRIPT::CConstraintMethode::getfunctionTag |
( |
|
) |
const [inline] |
|
const char* NLAISCRIPT::CConstraintMethode::getInfo |
( |
|
) |
[inline, virtual] |
|
int NLAISCRIPT::CConstraintMethode::getLine |
( |
|
) |
const [inline, virtual] |
|
virtual ConstraintTypeEnum NLAISCRIPT::CConstraintMethode::getTypeOfClass |
( |
|
) |
const [inline, virtual] |
|
bool NLAISCRIPT::CConstraintMethode::operator== |
( |
const IConstraint & |
c |
) |
const [inline, virtual] |
|
void NLAISCRIPT::CConstraintMethode::run |
( |
IConstraint * |
|
) |
[virtual] |
|
void NLAISCRIPT::CConstraintMethode::run |
( |
CCompilateur & |
|
) |
[virtual] |
|
|
Run with a CCompilateur dependency.
Implements NLAISCRIPT::IConstraint.
Reimplemented in NLAISCRIPT::CConstraintFindRun.
Definition at line 50 of file constraint.cpp.
References _BaseClass, _M, _MethodName, _Param, _PosHeap, _Satisfied, _Txt, NLAIC::IBasicType::getDebugString, NLAIC::CIdentType::getFactory, NLAIAGENT::IBaseGroupType::getFront, NLAIAGENT::CStringType::getStr, heapCall, NLAISCRIPT::IConstraint::IConstraint, id, newCall, normalCall, param, searchCall, setOpCode, stackCall, NLAIC::stringGetBuild, NLAIC::CTypeOfObject::tInterpret, type, and x. |
bool NLAISCRIPT::CConstraintMethode::satisfied |
( |
|
) |
[inline, virtual] |
|
Member Data Documentation
IConstraint* NLAISCRIPT::CConstraintMethode::_BaseClass [protected]
|
|
int NLAISCRIPT::CConstraintMethode::_Col [protected]
|
|
bool NLAISCRIPT::CConstraintMethode::_DelCType [protected]
|
|
int NLAISCRIPT::CConstraintMethode::_Lin [protected]
|
|
CParam* NLAISCRIPT::CConstraintMethode::_Param [protected]
|
|
int NLAISCRIPT::CConstraintMethode::_PosHeap [protected]
|
|
bool NLAISCRIPT::CConstraintMethode::_Satisfied [protected]
|
|
char* NLAISCRIPT::CConstraintMethode::_Txt [protected]
|
|
char* NLAISCRIPT::CConstraintMethode::_TxtInfo [protected]
|
|
IConstraint* NLAISCRIPT::CConstraintMethode::_Type [protected]
|
|
The documentation for this class was generated from the following files:
|
|