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

Class CConstraintStackComp. More...

#include <constraint_stack_component.h>

Inheritance diagram for NLAISCRIPT::CConstraintStackComp:

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

Public Types

enum  OpCodeType { heapCall, stackCall, heapAffectation }
 This enum give information of the way to load the compoment. More...


Public Methods

 CConstraintStackComp (OpCodeType opCodeType, sint32 stackPos, const std::list< NLAISCRIPT::CStringType > &memberName, IOpType *typeStack, sint32 lign, sint32 col)
virtual ~CConstraintStackComp ()
IConstraint method.
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...

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

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

bool operator== (const IConstraint &c) const
void addIndex (sint32 i, CCodeBrancheRun *c)
void getError (char *) const
 get an error string when the constraint is'nt stisfied. More...

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

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

const NLAIC::CIdentTypegetConstraintTypeOf ()
 Type of the expression that it have to be resolve by constraint. 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...


Private Attributes

IOpType_TypeStack
 Set the type of component, it can be an unresolved constraint. More...

std::list< NLAISCRIPT::CStringType_MemberName
 Set herarchy name (a hierarchy name is some thing like classBaseName.className.component). More...

NLAIC::CIdentType_Id
 The type of compoment when it resolve. More...

OpCodeType _OpCodeType
 Type of load. More...

sint32 _StackPos
 It used when the type is a heapCall and define the heap position. More...

Attribut need for IConstraint method.
sint32 _Lin
sint32 _Col
bool _Satisfied
char * _TxtInfo
std::list< std::pair< sint32,
CCodeBrancheRun * > > 
_Code

Detailed Description

Class CConstraintStackComp.

This class is allow to load component from the stack or the heap.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 40 of file constraint_stack_component.h.


Member Enumeration Documentation

enum NLAISCRIPT::CConstraintStackComp::OpCodeType
 

This enum give information of the way to load the compoment.

Enumeration values:
heapCall  Load the compoment from a class stored in the heap.
stackCall  Load the compoment from a class stored in the stack.
heapAffectation  set a compoment stored in the self class.

Definition at line 44 of file constraint_stack_component.h.


Constructor & Destructor Documentation

NLAISCRIPT::CConstraintStackComp::CConstraintStackComp OpCodeType    opCodeType,
sint32    stackPos,
const std::list< NLAISCRIPT::CStringType > &    memberName,
IOpType   typeStack,
sint32    lign,
sint32    col
 

Definition at line 32 of file constraint_stack_component.cpp.

References _Id, _Lin, _MemberName, _OpCodeType, _Satisfied, _StackPos, _TxtInfo, nlinfo, s, and NLAIC::stringGetBuild.

Referenced by clone, and operator==.

NLAISCRIPT::CConstraintStackComp::~CConstraintStackComp   [virtual]
 

Definition at line 60 of file constraint_stack_component.cpp.

References _Id, _TxtInfo, and _TypeStack.


Member Function Documentation

void NLAISCRIPT::CConstraintStackComp::addIndex sint32    i,
CCodeBrancheRun   c
[inline]
 

Definition at line 90 of file constraint_stack_component.h.

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

Get a clone pointer memory.

Implements NLAISCRIPT::IConstraint.

Definition at line 180 of file constraint_stack_component.cpp.

References _Col, _Lin, _MemberName, _OpCodeType, _TypeStack, CConstraintStackComp, NLAISCRIPT::IConstraint::IConstraint, and x.

bool NLAISCRIPT::CConstraintStackComp::dependOn const IConstraint   const [virtual]
 

If this constraint depond on other constraint.

Implements NLAISCRIPT::IConstraint.

Definition at line 157 of file constraint_stack_component.cpp.

References _TypeStack.

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

Definition at line 106 of file constraint_stack_component.h.

References _Col.

const NLAIC::CIdentType * NLAISCRIPT::CConstraintStackComp::getConstraintTypeOf   [virtual]
 

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

Implements NLAISCRIPT::IConstraint.

Definition at line 187 of file constraint_stack_component.cpp.

References _Id.

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

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

Reimplemented from NLAISCRIPT::IOpType.

Definition at line 173 of file constraint_stack_component.cpp.

References _TxtInfo, and NLAIC::stringGetBuild.

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

Get a string info.

Implements NLAISCRIPT::IConstraint.

Definition at line 78 of file constraint_stack_component.h.

References _TxtInfo.

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

Definition at line 102 of file constraint_stack_component.h.

References _Lin.

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

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

Implements NLAISCRIPT::IConstraint.

Definition at line 96 of file constraint_stack_component.h.

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

Referenced by operator==.

bool NLAISCRIPT::CConstraintStackComp::operator== const IConstraint   c const [virtual]
 

Implements NLAISCRIPT::IConstraint.

Definition at line 162 of file constraint_stack_component.cpp.

References _MemberName, _OpCodeType, _StackPos, _TypeStack, CConstraintStackComp, and getTypeOfClass.

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

Run with a IConstraint dependency.

Reimplemented from NLAISCRIPT::IOpType.

Definition at line 153 of file constraint_stack_component.cpp.

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

Run with a CCompilateur dependency.

Reimplemented from NLAISCRIPT::IOpType.

Definition at line 67 of file constraint_stack_component.cpp.

References _Code, _Id, _MemberName, _Satisfied, _StackPos, _TypeStack, NLAIAGENT::IObjectIA::getStaticMemberIndex, heapAffectation, heapCall, NLAISCRIPT::IOpType::IOpType, NLAIC::IPointerGestion::release, stackCall, and x.

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

If the constraint is resolved.

Implements NLAISCRIPT::IConstraint.

Definition at line 84 of file constraint_stack_component.h.

References _Satisfied.


Member Data Documentation

std::list<std::pair<sint32, CCodeBrancheRun *> > NLAISCRIPT::CConstraintStackComp::_Code [private]
 

Definition at line 64 of file constraint_stack_component.h.

Referenced by run.

sint32 NLAISCRIPT::CConstraintStackComp::_Col [private]
 

Definition at line 61 of file constraint_stack_component.h.

Referenced by clone, and getColone.

NLAIC::CIdentType* NLAISCRIPT::CConstraintStackComp::_Id [private]
 

The type of compoment when it resolve.

Definition at line 68 of file constraint_stack_component.h.

Referenced by CConstraintStackComp, getConstraintTypeOf, run, and ~CConstraintStackComp.

sint32 NLAISCRIPT::CConstraintStackComp::_Lin [private]
 

Definition at line 60 of file constraint_stack_component.h.

Referenced by CConstraintStackComp, clone, and getLine.

std::list<NLAISCRIPT::CStringType > NLAISCRIPT::CConstraintStackComp::_MemberName [private]
 

Set herarchy name (a hierarchy name is some thing like classBaseName.className.component).

Definition at line 56 of file constraint_stack_component.h.

Referenced by CConstraintStackComp, clone, operator==, and run.

OpCodeType NLAISCRIPT::CConstraintStackComp::_OpCodeType [private]
 

Type of load.

Definition at line 70 of file constraint_stack_component.h.

Referenced by CConstraintStackComp, clone, and operator==.

bool NLAISCRIPT::CConstraintStackComp::_Satisfied [private]
 

Definition at line 62 of file constraint_stack_component.h.

Referenced by CConstraintStackComp, run, and satisfied.

sint32 NLAISCRIPT::CConstraintStackComp::_StackPos [private]
 

It used when the type is a heapCall and define the heap position.

Definition at line 72 of file constraint_stack_component.h.

Referenced by CConstraintStackComp, operator==, and run.

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

Definition at line 63 of file constraint_stack_component.h.

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

IOpType* NLAISCRIPT::CConstraintStackComp::_TypeStack [private]
 

Set the type of component, it can be an unresolved constraint.

Definition at line 54 of file constraint_stack_component.h.

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


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