# 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

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

Collaboration graph
[legend]
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(s):
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.

NLAISCRIPT::CConstraintStackComp::~CConstraintStackComp ( ) [virtual]
 

Definition at line 55 of file constraint_stack_component.cpp.


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 ( void ) const [virtual]
 

Get a clone pointer memory.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 173 of file constraint_stack_component.cpp.

bool NLAISCRIPT::CConstraintStackComp::dependOn ( const IConstraint * c ) const [virtual]
 

If this constraint depond on other constraint.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 152 of file constraint_stack_component.cpp.

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.

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

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 180 of file constraint_stack_component.cpp.

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

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

Reimplemented from NLAISCRIPT::IOpType.

Definition at line 168 of file constraint_stack_component.cpp.

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

Get a string info.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 78 of file constraint_stack_component.h.

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.

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

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 96 of file constraint_stack_component.h.

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

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 157 of file constraint_stack_component.cpp.

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

Run with a IConstraint dependency.

Reimplemented from NLAISCRIPT::IOpType.

Definition at line 148 of file constraint_stack_component.cpp.

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

Run with a CCompilateur dependency.

Reimplemented from NLAISCRIPT::IOpType.

Definition at line 62 of file constraint_stack_component.cpp.

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

If the constraint is resolved.

Reimplemented from NLAISCRIPT::IConstraint.

Definition at line 84 of file constraint_stack_component.h.


Member Data Documentation

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

Definition at line 64 of file constraint_stack_component.h.

sint32 NLAISCRIPT::CConstraintStackComp::_Col [private]
 

Definition at line 61 of file constraint_stack_component.h.

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

The type of compoment when it resolve.

Definition at line 68 of file constraint_stack_component.h.

sint32 NLAISCRIPT::CConstraintStackComp::_Lin [private]
 

Definition at line 60 of file constraint_stack_component.h.

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.

OpCodeType NLAISCRIPT::CConstraintStackComp::_OpCodeType [private]
 

Type of load.

Definition at line 70 of file constraint_stack_component.h.

bool NLAISCRIPT::CConstraintStackComp::_Satisfied [private]
 

Definition at line 62 of file constraint_stack_component.h.

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.

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

Definition at line 63 of file constraint_stack_component.h.

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.


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