From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNLAISCRIPT_1_1CConstraintMethode.html | 1308 ++++++++++++++++++++ 1 file changed, 1308 insertions(+) create mode 100644 docs/doxygen/nel/classNLAISCRIPT_1_1CConstraintMethode.html (limited to 'docs/doxygen/nel/classNLAISCRIPT_1_1CConstraintMethode.html') diff --git a/docs/doxygen/nel/classNLAISCRIPT_1_1CConstraintMethode.html b/docs/doxygen/nel/classNLAISCRIPT_1_1CConstraintMethode.html new file mode 100644 index 00000000..b1662e65 --- /dev/null +++ b/docs/doxygen/nel/classNLAISCRIPT_1_1CConstraintMethode.html @@ -0,0 +1,1308 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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: +

+ +NLAISCRIPT::IConstraint +NLAIC::IPointerGestion +NLMISC::IStreamable +NLMISC::IClassable +NLAISCRIPT::CConstraintFindRun + +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:
+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

+

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

+ +

+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]
+
+ + + + + +
+   + + +

+ +

+Definition at line 372 of file constraint.h. +

+References _Param, _Txt, _TxtInfo, and NLAIC::IPointerGestion::release.

+


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. +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 334 of file constraint.h.

+

+ + + + +
+ + + + + + + + + +
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]
+
+ + + + + +
+   + + +

+If this constraint depond on other constraint. +

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 316 of file constraint.h. +

+References NLAISCRIPT::IConstraint::IConstraint.

+

+ + + + +
+ + + + + + + + + +
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. +

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 366 of file constraint.h. +

+References _Col.

+

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

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

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 347 of file constraint.h.

+

+ + + + +
+ + + + + + + + + + +
void NLAISCRIPT::CConstraintMethode::getError char *   const [virtual]
+
+ + + + + +
+   + + +

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

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 317 of file constraint.cpp. +

+References _Txt.

+

+ + + + +
+ + + + + + + + + +
const CFunctionTag& NLAISCRIPT::CConstraintMethode::getfunctionTag   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 357 of file constraint.h. +

+Referenced by NLAISCRIPT::CConstraintFindRun::run, and NLAISCRIPT::CConstraintFindRun::setOpCode.

+

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

+Get a string info. +

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 303 of file constraint.h. +

+References _TxtInfo.

+

+ + + + +
+ + + + + + + + + +
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. +

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 362 of file constraint.h. +

+References _Lin.

+

+ + + + +
+ + + + + + + + + +
virtual ConstraintTypeEnum NLAISCRIPT::CConstraintMethode::getTypeOfClass   const [inline, virtual]
+
+ + + + + +
+   + + +

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

+ +

+Implements NLAISCRIPT::IConstraint. +

+Reimplemented in NLAISCRIPT::CConstraintFindRun. +

+Definition at line 352 of file constraint.h. +

+References NLAISCRIPT::IConstraint::constraintMethode, and NLAISCRIPT::IConstraint::ConstraintTypeEnum. +

+Referenced by operator==.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool NLAISCRIPT::CConstraintMethode::isEqual const NLAIAGENT::IBaseGroupType ,
const CParam 
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 322 of file constraint.cpp. +

+References _MethodName, and _Param.

+

+ + + + +
+ + + + + + + + + + +
bool NLAISCRIPT::CConstraintMethode::operator== const IConstraint  c const [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 322 of file constraint.h. +

+References _CallType, _Param, CConstraintMethode, getTypeOfClass, and NLAISCRIPT::IConstraint::IConstraint.

+

+ + + + +
+ + + + + + + + + + +
void NLAISCRIPT::CConstraintMethode::run IConstraint  [virtual]
+
+ + + + + +
+   + + +

+Run with a IConstraint dependency. +

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 328 of file constraint.cpp.

+

+ + + + +
+ + + + + + + + + + +
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]
+
+ + + + + +
+   + + +

+If the constraint is resolved. +

+ +

+Implements NLAISCRIPT::IConstraint. +

+Definition at line 311 of file constraint.h. +

+References _Satisfied.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLAISCRIPT::CConstraintMethode::setOpCode CCompilateur  comp,
IOpCode  x,
IConstraint  cType,
bool   del
[virtual]
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLAISCRIPT::CConstraintFindRun. +

+Definition at line 285 of file constraint.cpp. +

+References _Code, _DelCType, _Type, NLAISCRIPT::IConstraint::runConnexcion, type, and x. +

+Referenced by run.

+


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 265 of file constraint.h. +

+Referenced by NLAISCRIPT::CConstraintFindRun::clone, clone, NLAISCRIPT::CConstraintFindRun::run, run, and NLAISCRIPT::CConstraintFindRun::setOpCode.

+

+ + + + +
+ + +
TCallTypeOpCode NLAISCRIPT::CConstraintMethode::_CallType [protected] +
+
+ + + + + +
+   + + +

+Type of search. +

+ +

+Definition at line 263 of file constraint.h. +

+Referenced by CConstraintMethode, clone, and operator==.

+

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

+ +

+Definition at line 273 of file constraint.h. +

+Referenced by NLAISCRIPT::CConstraintFindRun::setOpCode, and setOpCode.

+

+ + + + +
+ + +
int NLAISCRIPT::CConstraintMethode::_Col [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 272 of file constraint.h. +

+Referenced by CConstraintMethode, NLAISCRIPT::CConstraintFindRun::clone, clone, and getColone.

+

+ + + + +
+ + +
bool NLAISCRIPT::CConstraintMethode::_DelCType [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 278 of file constraint.h. +

+Referenced by CConstraintMethode, NLAISCRIPT::CConstraintFindRun::setOpCode, and setOpCode.

+

+ + + + +
+ + +
int NLAISCRIPT::CConstraintMethode::_Lin [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 271 of file constraint.h. +

+Referenced by CConstraintMethode, NLAISCRIPT::CConstraintFindRun::clone, clone, and getLine.

+

+ + + + +
+ + +
CFunctionTag NLAISCRIPT::CConstraintMethode::_M [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 279 of file constraint.h. +

+Referenced by run.

+

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

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

+ +

+Definition at line 267 of file constraint.h. +

+Referenced by NLAISCRIPT::CConstraintFindRun::clone, clone, isEqual, NLAISCRIPT::CConstraintFindRun::run, and run.

+

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

+Method argument. +

+ +

+Definition at line 269 of file constraint.h. +

+Referenced by CConstraintMethode, NLAISCRIPT::CConstraintFindRun::clone, clone, isEqual, operator==, NLAISCRIPT::CConstraintFindRun::run, run, and ~CConstraintMethode.

+

+ + + + +
+ + +
int NLAISCRIPT::CConstraintMethode::_PosHeap [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 277 of file constraint.h. +

+Referenced by CConstraintMethode, NLAISCRIPT::CConstraintFindRun::clone, clone, NLAISCRIPT::CConstraintFindRun::run, and run.

+

+ + + + +
+ + +
bool NLAISCRIPT::CConstraintMethode::_Satisfied [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 270 of file constraint.h. +

+Referenced by CConstraintMethode, NLAISCRIPT::CConstraintFindRun::run, run, and satisfied.

+

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

+ +

+Definition at line 274 of file constraint.h. +

+Referenced by CConstraintMethode, getError, run, and ~CConstraintMethode.

+

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

+ +

+Definition at line 276 of file constraint.h. +

+Referenced by CConstraintMethode, getInfo, and ~CConstraintMethode.

+

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

+ +

+Definition at line 275 of file constraint.h. +

+Referenced by NLAISCRIPT::CConstraintFindRun::setOpCode, and setOpCode.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1