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

A debug constraint. More...

#include <constraint_debug.h>

Inheritance diagram for NLAISCRIPT::CConstraintDebug:

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

Public Methods

 CConstraintDebug (int lin, int col)
 Constructor param lin Line number in the source code. More...

virtual ~CConstraintDebug ()
 Destructor. More...

void addIndex (int i, CCodeBrancheRun *c)
 Fix the opCode adress. More...

void getError (char *) const
 Get the error message. More...

int getLine () const
 Get the opCode line number in source texte. More...

int getColone () const
 Get the opCode colone number in source texte. More...

IConstraint method.
void run (CCompilateur &c)
 Run with a CCompilateur dependency. More...

void run (IConstraint *c)
 Run with a IConstraint dependency. More...

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

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

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

IConstraint method.
Not used.

bool operator== (const IConstraint &) const
 Not used. More...

const NLAIC::CIdentTypegetConstraintTypeOf ()
 Not used. More...

const char * getInfo ()
 Not used. More...

bool dependOn (const IConstraint *) const
 Not used. More...


Private Attributes

bool _Satisfied
int _Lin
 Is the constraint satified ? More...

int _Col
 OpCode line number in source texte. More...

int _I
 OpCode colone number in source texte. More...

CCodeBrancheRun_Code
 Index in the CCodeBrancheRun. More...

char * _Txt
 Pointer to the CCodeBrancheRun. More...


Detailed Description

A debug constraint.

It keep a trace between original source code and OpCode.

Author:
Gabriel ROBERT , Nevrax France
Date:
2000

Definition at line 41 of file constraint_debug.h.


Constructor & Destructor Documentation

NLAISCRIPT::CConstraintDebug::CConstraintDebug int    lin,
int    col
 

Constructor param lin Line number in the source code.

param col Colonne number in the source code.

Definition at line 30 of file constraint_debug.cpp.

References _Code, and _Txt.

Referenced by clone.

NLAISCRIPT::CConstraintDebug::~CConstraintDebug   [virtual]
 

Destructor.

Definition at line 37 of file constraint_debug.cpp.

References _Txt.


Member Function Documentation

void NLAISCRIPT::CConstraintDebug::addIndex int    i,
CCodeBrancheRun   c
[virtual]
 

Fix the opCode adress.

It must be call before run(CCompilateur & c). WARNING : This function will self-destruct the constraint.

Parameters:
i  Index in the CCodeBrancheRun
c  pointer to the CCodeBrancheRun

Implements NLAISCRIPT::IConstraint.

Definition at line 47 of file constraint_debug.cpp.

References _Code, _I, _Lin, and NLAIC::IPointerGestion::release.

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

Get a clone pointer memory.

Implements NLAISCRIPT::IConstraint.

Definition at line 87 of file constraint_debug.cpp.

References _Col, _Lin, CConstraintDebug, NLAISCRIPT::IConstraint::IConstraint, and x.

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

Not used.

Implements NLAISCRIPT::IConstraint.

Definition at line 100 of file constraint_debug.cpp.

int NLAISCRIPT::CConstraintDebug::getColone   const [inline, virtual]
 

Get the opCode colone number in source texte.

Implements NLAISCRIPT::IConstraint.

Definition at line 85 of file constraint_debug.h.

References _Col.

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

Not used.

Implements NLAISCRIPT::IConstraint.

Definition at line 82 of file constraint_debug.cpp.

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

Get the error message.

Implements NLAISCRIPT::IConstraint.

Definition at line 70 of file constraint_debug.cpp.

References _Txt.

const char * NLAISCRIPT::CConstraintDebug::getInfo   [virtual]
 

Not used.

Implements NLAISCRIPT::IConstraint.

Definition at line 94 of file constraint_debug.cpp.

int NLAISCRIPT::CConstraintDebug::getLine   const [inline, virtual]
 

Get the opCode line number in source texte.

Implements NLAISCRIPT::IConstraint.

Definition at line 82 of file constraint_debug.h.

References _Lin.

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

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

Implements NLAISCRIPT::IConstraint.

Definition at line 67 of file constraint_debug.h.

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

bool NLAISCRIPT::CConstraintDebug::operator== const IConstraint   const [virtual]
 

Not used.

Implements NLAISCRIPT::IConstraint.

Definition at line 76 of file constraint_debug.cpp.

void NLAISCRIPT::CConstraintDebug::run IConstraint   c [virtual]
 

Run with a IConstraint dependency.

Implements NLAISCRIPT::IConstraint.

Definition at line 65 of file constraint_debug.cpp.

References _Satisfied.

void NLAISCRIPT::CConstraintDebug::run CCompilateur   c [virtual]
 

Run with a CCompilateur dependency.

Implements NLAISCRIPT::IConstraint.

Definition at line 60 of file constraint_debug.cpp.

References _Satisfied.

bool NLAISCRIPT::CConstraintDebug::satisfied   [virtual]
 

If the constraint is resolved.

Implements NLAISCRIPT::IConstraint.

Definition at line 42 of file constraint_debug.cpp.

References _Satisfied.


Member Data Documentation

CCodeBrancheRun* NLAISCRIPT::CConstraintDebug::_Code [private]
 

Index in the CCodeBrancheRun.

Definition at line 48 of file constraint_debug.h.

Referenced by addIndex, and CConstraintDebug.

int NLAISCRIPT::CConstraintDebug::_Col [private]
 

OpCode line number in source texte.

Definition at line 46 of file constraint_debug.h.

Referenced by clone, and getColone.

int NLAISCRIPT::CConstraintDebug::_I [private]
 

OpCode colone number in source texte.

Definition at line 47 of file constraint_debug.h.

Referenced by addIndex.

int NLAISCRIPT::CConstraintDebug::_Lin [private]
 

Is the constraint satified ?

Definition at line 45 of file constraint_debug.h.

Referenced by addIndex, clone, and getLine.

bool NLAISCRIPT::CConstraintDebug::_Satisfied [private]
 

Definition at line 44 of file constraint_debug.h.

Referenced by run, and satisfied.

char* NLAISCRIPT::CConstraintDebug::_Txt [private]
 

Pointer to the CCodeBrancheRun.

Definition at line 49 of file constraint_debug.h.

Referenced by CConstraintDebug, getError, and ~CConstraintDebug.


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