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

Class CBagOfCode. More...

#include <codage.h>

List of all members.

Public Methods

 CBagOfCode (IOpCode *opcode)
 operator IOpCode * () const
 That is the only way to have the op-code contened. More...

void setCode (IOpCode *op)
 That is the only way to set the op-code in container. More...

void addConstraint (IConstraint *c)
 allow us to add a constraint in the bag. More...

void addConstraint (CBagOfCode *b)
 allow us to add the all constraint in a bag. More...

void setConstraintIndex (int i, CCodeBrancheRun *c)
 setConstraintIndex method transmit to them constraint the index range of op-code and the base pointer of where they are.Not that the base pointer is a CCodeBrancheRun and when it's built an index range is creat for each of op-code in the container at this moment setConstraintIndex we can call the copnstraints. More...

 ~CBagOfCode ()

Private Attributes

IOpCode_Opcode
std::list< IConstraint * > _Constraint


Detailed Description

Class CBagOfCode.

Define a container for the op-code produced from the parser.

A container of code is define by a op-code pointer and a list of constraine that needs the index range of the op-code in the CCodeBrancheRun class, where CCodeBrancheRun is the op-code container.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 442 of file codage.h.


Constructor & Destructor Documentation

NLAISCRIPT::CBagOfCode::CBagOfCode IOpCode   opcode [inline]
 

Definition at line 449 of file codage.h.

NLAISCRIPT::CBagOfCode::~CBagOfCode   [inline]
 

Definition at line 486 of file codage.h.


Member Function Documentation

void NLAISCRIPT::CBagOfCode::addConstraint CBagOfCode *    b [inline]
 

allow us to add the all constraint in a bag.

Definition at line 473 of file codage.h.

void NLAISCRIPT::CBagOfCode::addConstraint IConstraint   c [inline]
 

allow us to add a constraint in the bag.

Definition at line 467 of file codage.h.

NLAISCRIPT::CBagOfCode::operator IOpCode *   const [inline]
 

That is the only way to have the op-code contened.

Definition at line 455 of file codage.h.

void NLAISCRIPT::CBagOfCode::setCode IOpCode   op [inline]
 

That is the only way to set the op-code in container.

Definition at line 461 of file codage.h.

void NLAISCRIPT::CBagOfCode::setConstraintIndex int    i,
CCodeBrancheRun   c
 

setConstraintIndex method transmit to them constraint the index range of op-code and the base pointer of where they are.Not that the base pointer is a CCodeBrancheRun and when it's built an index range is creat for each of op-code in the container at this moment setConstraintIndex we can call the copnstraints.

Definition at line 236 of file codage.cpp.

References _Constraint.


Member Data Documentation

std::list<IConstraint *> NLAISCRIPT::CBagOfCode::_Constraint [private]
 

Definition at line 446 of file codage.h.

Referenced by setConstraintIndex.

IOpCode* NLAISCRIPT::CBagOfCode::_Opcode [private]
 

Definition at line 445 of file codage.h.


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