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

Class CCodeBrancheRun. More...

#include <codage.h>

Inheritance diagram for NLAISCRIPT::CCodeBrancheRun

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

Collaboration graph
[legend]
List of all members.

Public Methods

 CCodeBrancheRun (const CCodeBrancheRun &l)
 copy constructor of the class. More...

 CCodeBrancheRun (const tListCode &l)
 you can construct the class with a liste of op code. More...

 CCodeBrancheRun (int N,const IOpCode &op)
 the constructor built a class with N op code copy of the op parametre. More...

 CCodeBrancheRun (int N)
 the constructor built a class with N NUL op code. More...

 CCodeBrancheRun (NLMISC::IStream &is)
 the constructor built a class with a stream. More...

virtual ~CCodeBrancheRun ()
void initCode (const tListCode &l)
void initCode (const CCodeBrancheRun &l)
IOpCode*& operator[] (int i)
 allow us to acces to an element in the internal table of the class. More...

void operator= (uint32 l)
 set the code pointer to l range. More...

void operator+= (uint32 l)
 move the ip pointer at l element. More...

 operator uint32 ()
 get the ip pointer. More...

void init ()
IOpCodenextCode ()
 get the op code from the curent position. More...

ICodeBranche method.
virtual const NLAIAGENT::IObjectIA::CProcessResultrun (NLAIAGENT::IObjectIA &self)
 Run for a given self class. The method create a new context. More...

virtual const NLAIAGENT::IObjectIA::CProcessResultrun (CCodeContext &)
 Run with a given context. More...

NLAIAGENT::TProcessStatement runOpCode (CCodeContext &context)
 Computation of the op-code with a given context. More...

void getDebugResult (char *str,CCodeContext &context) const
 gets debug string from the op-code. More...

IBasicInterface method.
void save (NLMISC::IStream &f)
 Save the class in a stream. More...

void load (NLMISC::IStream &f)
 Load the class from a stream. More...

void getDebugString (char *) const
 This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...

const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

IBasicObjectIA method.
bool isEqual (const NLAIAGENT::IBasicObjectIA &a) const
IObjectIA method.
virtual const NLAIAGENT::IObjectIA::CProcessResultrun ()
 Some where Run method define the process of the agen. More...


Static Public Attributes

NLAIC::IIOInputOutput = NULL
const NLAIC::CIdentType IdCodeBrancheRun

Protected Methods

void del ()
 del allow the class to del and reinitialize the class. More...


Protected Attributes

IOpCode** _TableCode
 Table for storage the op code. More...

int _Ip
 The code pointer index of the curent op code in run. More...

int _Count
 The count of the op code table. More...

NLAIAGENT::IObjectIA::CProcessResult _RunState
 The state of tje last run method called. More...


Detailed Description

Class CCodeBrancheRun.

Define a table for storage and run op-code.

Author(s):
Chafik sameh , Nevrax France
Date:
2000

Definition at line 496 of file codage.h.


Constructor & Destructor Documentation

NLAISCRIPT::CCodeBrancheRun::CCodeBrancheRun ( const CCodeBrancheRun & l ) [inline]
 

copy constructor of the class.

Definition at line 532 of file codage.h.

NLAISCRIPT::CCodeBrancheRun::CCodeBrancheRun ( const tListCode & l ) [inline]
 

you can construct the class with a liste of op code.

Definition at line 543 of file codage.h.

NLAISCRIPT::CCodeBrancheRun::CCodeBrancheRun ( int N,
const IOpCode & op )
 

the constructor built a class with N op code copy of the op parametre.

Definition at line 162 of file codage.cpp.

NLAISCRIPT::CCodeBrancheRun::CCodeBrancheRun ( int N )
 

the constructor built a class with N NUL op code.

Definition at line 172 of file codage.cpp.

NLAISCRIPT::CCodeBrancheRun::CCodeBrancheRun ( NLMISC::IStream & is ) [inline]
 

the constructor built a class with a stream.

Definition at line 555 of file codage.h.

NLAISCRIPT::CCodeBrancheRun::~CCodeBrancheRun ( ) [inline, virtual]
 

Definition at line 560 of file codage.h.


Member Function Documentation

const NLAIC::IBasicType * NLAISCRIPT::CCodeBrancheRun::clone ( void ) const [inline, virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 648 of file codage.h.

void NLAISCRIPT::CCodeBrancheRun::del ( ) [inline, protected]
 

del allow the class to del and reinitialize the class.

Definition at line 514 of file codage.h.

void NLAISCRIPT::CCodeBrancheRun::getDebugResult ( char * str,
CCodeContext & p ) const [virtual]
 

gets debug string from the op-code.

Reimplemented from NLAISCRIPT::IOpCode.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 182 of file codage.cpp.

void NLAISCRIPT::CCodeBrancheRun::getDebugString ( char * t ) const [virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Reimplemented from NLAIC::IBasicType.

Definition at line 86 of file codage.cpp.

const NLAIC::CIdentType & NLAISCRIPT::CCodeBrancheRun::getType ( void ) const [virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 187 of file codage.cpp.

Referenced by NLAIAGENT::CMainAgentScript::addDynamicAgent().

void NLAISCRIPT::CCodeBrancheRun::init ( void ) [inline]
 

Definition at line 619 of file codage.h.

void NLAISCRIPT::CCodeBrancheRun::initCode ( const CCodeBrancheRun & l ) [inline]
 

Definition at line 581 of file codage.h.

void NLAISCRIPT::CCodeBrancheRun::initCode ( const tListCode & l ) [inline]
 

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 566 of file codage.h.

bool NLAISCRIPT::CCodeBrancheRun::isEqual ( const NLAIAGENT::IBasicObjectIA & a ) const [inline]
 

Definition at line 659 of file codage.h.

void NLAISCRIPT::CCodeBrancheRun::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIC::IBasicInterface.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 56 of file codage.cpp.

const NLAIC::IBasicType * NLAISCRIPT::CCodeBrancheRun::newInstance ( void ) const [virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Reimplemented from NLAIC::IBasicType.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 80 of file codage.cpp.

IOpCode & NLAISCRIPT::CCodeBrancheRun::nextCode ( ) [inline, virtual]
 

get the op code from the curent position.

Reimplemented from NLAISCRIPT::ICodeBranche.

Definition at line 625 of file codage.h.

NLAISCRIPT::CCodeBrancheRun::operator uint32 ( ) [inline]
 

get the ip pointer.

Definition at line 614 of file codage.h.

void NLAISCRIPT::CCodeBrancheRun::operator+= ( uint32 l ) [inline]
 

move the ip pointer at l element.

Definition at line 608 of file codage.h.

void NLAISCRIPT::CCodeBrancheRun::operator= ( uint32 l ) [inline]
 

set the code pointer to l range.

Definition at line 602 of file codage.h.

IOpCode *& NLAISCRIPT::CCodeBrancheRun::operator[] ( int i ) [inline]
 

allow us to acces to an element in the internal table of the class.

Definition at line 596 of file codage.h.

const NLAIAGENT::IObjectIA::CProcessResult & NLAISCRIPT::CCodeBrancheRun::run ( void ) [virtual]
 

Some where Run method define the process of the agen.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 90 of file codage.cpp.

Referenced by NLAIAGENT::CMainAgentScript::runExec().

const NLAIAGENT::IObjectIA::CProcessResult & NLAISCRIPT::CCodeBrancheRun::run ( CCodeContext & p ) [virtual]
 

Run with a given context.

Reimplemented from NLAISCRIPT::ICodeBranche.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 130 of file codage.cpp.

const NLAIAGENT::IObjectIA::CProcessResult & NLAISCRIPT::CCodeBrancheRun::run ( NLAIAGENT::IObjectIA & self ) [virtual]
 

Run for a given self class. The method create a new context.

Reimplemented from NLAISCRIPT::ICodeBranche.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 108 of file codage.cpp.

NLAIAGENT::TProcessStatement NLAISCRIPT::CCodeBrancheRun::runOpCode ( CCodeContext & p ) [virtual]
 

Computation of the op-code with a given context.

Reimplemented from NLAISCRIPT::IOpCode.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 143 of file codage.cpp.

void NLAISCRIPT::CCodeBrancheRun::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIC::IBasicInterface.

Reimplemented in NLAISCRIPT::CCodeBrancheRunDebug.

Definition at line 37 of file codage.cpp.


Member Data Documentation

const NLAIC::CIdentType NLAISCRIPT::CCodeBrancheRun::IdCodeBrancheRun [static]
 

Definition at line 527 of file codage.h.

NLAIC::IIO * NLAISCRIPT::CCodeBrancheRun::InputOutput = NULL [static]
 

Definition at line 35 of file codage.cpp.

int NLAISCRIPT::CCodeBrancheRun::_Count [protected]
 

The count of the op code table.

Definition at line 507 of file codage.h.

int NLAISCRIPT::CCodeBrancheRun::_Ip [protected]
 

The code pointer index of the curent op code in run.

Definition at line 505 of file codage.h.

NLAIAGENT::IObjectIA::CProcessResult NLAISCRIPT::CCodeBrancheRun::_RunState [protected]
 

The state of tje last run method called.

Definition at line 509 of file codage.h.

IOpCode ** NLAISCRIPT::CCodeBrancheRun::_TableCode [protected]
 

Table for storage the op code.

Definition at line 503 of file codage.h.


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