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

Class CCodeContext. More...

#include <codage.h>

Inheritance diagram for NLAISCRIPT::CCodeContext:

NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CCodeContext (tStackRef &stackMem, tStackRef &heapMem, tCodeRef *codeMem, const NLAIAGENT::IObjectIA *thisClass, NLAIC::IIO *io)
void init ()
 For reinit the context after using. More...

void setIO (NLAIC::IIO *io)
 set the input output class. More...

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

const NLAIC::IBasicTypeclone (void) 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 (void) const
 This function allow a new instance, that mean that the class is a class factory. More...

void getDebugString (std::string &t) 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...

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

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

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


Public Attributes

tStackRefStack
 Stack is the stack for computing operation same as '+', '/' ... More...

tStackRefHeap
 Heap is the stack for storage local variable. More...

tCodeRefCode
 Code is the code in run. More...

const NLAIAGENT::IObjectIASelf
 Self define the this of the interpreter class objects. More...

NLAIC::IIOInputOutput
 InputOutput for the out put and in put request. More...

std::list< NLAIAGENT::IObjectIA * > Param
 Param shared the function attribut. More...

CContextDebug ContextDebug
 If the debugger is in run ContextDebug define its context. More...


Static Public Attributes

const NLAIC::CIdentType IdCodeContext
 Referance of the object in the class factory. More...


Detailed Description

Class CCodeContext.

Define the contexte of the interpreter.

Author:
Chafik sameh , Robert gabriel , Nevrax France
Date:
2000

Definition at line 330 of file codage.h.


Constructor & Destructor Documentation

NLAISCRIPT::CCodeContext::CCodeContext tStackRef   stackMem,
tStackRef   heapMem,
tCodeRef   codeMem,
const NLAIAGENT::IObjectIA   thisClass,
NLAIC::IIO   io
[inline]
 

Definition at line 355 of file codage.h.

References NLAIC::IPointerGestion::incRef, and NLAISCRIPT::tCodeRef.

NLAISCRIPT::CCodeContext::~CCodeContext   [inline]
 

Definition at line 421 of file codage.h.

References NLAIC::IPointerGestion::release.


Member Function Documentation

const NLAIC::IBasicType* NLAISCRIPT::CCodeContext::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.

Implements NLAIC::IBasicType.

Definition at line 384 of file codage.h.

References x.

void NLAISCRIPT::CCodeContext::getDebugString std::string &    t const [inline, 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.

Implements NLAIC::IBasicType.

Definition at line 393 of file codage.h.

References NLAIC::stringGetBuild, and t.

const NLAIC::CIdentType& NLAISCRIPT::CCodeContext::getType void    const [inline, 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).

Implements NLAIC::IBasicType.

Definition at line 380 of file codage.h.

void NLAISCRIPT::CCodeContext::init   [inline]
 

For reinit the context after using.

Definition at line 366 of file codage.h.

bool NLAISCRIPT::CCodeContext::isEqual const class NLAIAGENT::IBasicObjectIA   const [inline]
 

Definition at line 407 of file codage.h.

void NLAISCRIPT::CCodeContext::load NLMISC::IStream   f [inline, virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 400 of file codage.h.

const NLAIC::IBasicType* NLAISCRIPT::CCodeContext::newInstance void    const [inline, virtual]
 

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

Implements NLAIC::IBasicType.

Definition at line 389 of file codage.h.

const NLAIAGENT::IObjectIA::CProcessResult& NLAISCRIPT::CCodeContext::run void    [inline, virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 415 of file codage.h.

References NLAIAGENT::IObjectIA::ProcessRun.

void NLAISCRIPT::CCodeContext::save NLMISC::IStream   f [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 397 of file codage.h.

void NLAISCRIPT::CCodeContext::setIO NLAIC::IIO   io [inline]
 

set the input output class.

Definition at line 372 of file codage.h.

References NLAIC::IPointerGestion::release.


Member Data Documentation

tCodeRef* NLAISCRIPT::CCodeContext::Code
 

Code is the code in run.

Definition at line 339 of file codage.h.

Referenced by NLAISCRIPT::COperatorClass::activatePostConditions, NLAIAGENT::CAgentScript::callConstructor, NLAIAGENT::CAgentScript::callFunction, NLAISCRIPT::CAgentClass::initStatics, NLAISCRIPT::COperatorClass::isValidFonc, NLAIAGENT::CMainAgentScript::runExec, NLAIAGENT::CMessageScript::runMethodeMember, and NLAIAGENT::CAgentScript::runMethodeMember.

CContextDebug NLAISCRIPT::CCodeContext::ContextDebug
 

If the debugger is in run ContextDebug define its context.

Definition at line 347 of file codage.h.

Referenced by NLAISCRIPT::COperatorClass::activatePostConditions, NLAIAGENT::CAgentScript::processMessages, NLAIAGENT::CMessageScript::runMethodeMember, and NLAIAGENT::CAgentScript::runMethodeMember.

tStackRef& NLAISCRIPT::CCodeContext::Heap
 

Heap is the stack for storage local variable.

Definition at line 337 of file codage.h.

const NLAIC::CIdentType NLAISCRIPT::CCodeContext::IdCodeContext [static]
 

Initial value:

Referance of the object in the class factory.

Definition at line 776 of file static_def_init.cpp.

Referenced by NLAIAGENT::CMessageScript::runMethodeMember, and NLAIAGENT::CAgentScript::runMethodeMember.

NLAIC::IIO* NLAISCRIPT::CCodeContext::InputOutput
 

InputOutput for the out put and in put request.

Definition at line 343 of file codage.h.

Referenced by NLAIAGENT::CMainAgentScript::newInstance, and NLAIAGENT::CMainAgentScript::runExec.

std::list<NLAIAGENT::IObjectIA *> NLAISCRIPT::CCodeContext::Param
 

Param shared the function attribut.

Definition at line 345 of file codage.h.

Referenced by NLAIAGENT::CMessageScript::runMethodeMember, and NLAIAGENT::CAgentScript::runMethodeMember.

const NLAIAGENT::IObjectIA* NLAISCRIPT::CCodeContext::Self
 

Self define the this of the interpreter class objects.

Definition at line 341 of file codage.h.

Referenced by NLAIAGENT::CAgentScript::callConstructor, NLAIAGENT::CAgentScript::callFunction, NLAIAGENT::COperatorScript::checkPreconditions, NLAIAGENT::COperatorScript::execOnActivate, NLAIAGENT::CActorScript::failure, NLAIAGENT::COperatorScript::getDebugString, NLAIAGENT::CAgentScript::getDebugString, NLAISCRIPT::CAgentClass::initStatics, NLAIAGENT::CActorScript::pause, NLAIAGENT::CAgentScript::processMessages, NLAIAGENT::CActorScript::restart, NLAIAGENT::CActorScript::run, NLAIAGENT::CAgentScript::runActivity, NLAIAGENT::CMainAgentScript::runExec, NLAIAGENT::CActorScript::success, and NLAIAGENT::CActorScript::unActivate.

tStackRef& NLAISCRIPT::CCodeContext::Stack
 

Stack is the stack for computing operation same as '+', '/' ...

Definition at line 335 of file codage.h.

Referenced by NLAIAGENT::COperatorScript::execOnActivate, NLAIAGENT::COperatorScript::getDebugString, NLAIAGENT::CAgentScript::getDebugString, NLAISCRIPT::COperatorClass::isValidFonc, NLAIAGENT::CAgentScript::processMessages, NLAIAGENT::CMessageScript::runMethodeMember, and NLAIAGENT::CAgentScript::runMethodeMember.


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