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

Class CAffOpCode. More...

#include <opcode.h>

Inheritance diagram for NLAISCRIPT::CAffOpCode:

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

Public Methods

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

void getDebugResult (std::string &str, CCodeContext &context) const
 gets debug string from the op-code. 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...

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

void getDebugString (char *) const
void save (NLMISC::IStream &os)
 Save the class in a stream. More...

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

virtual ~CAffOpCode ()

Static Public Attributes

const NLAIC::CIdentType IdAffOpCode

Private Attributes

int _I
 Heap position. More...


Detailed Description

Class CAffOpCode.

This class define: *heap[h] = *stack[s]. Where s is the current stack position. Where h define a heap position.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 946 of file opcode.h.


Constructor & Destructor Documentation

NLAISCRIPT::CAffOpCode::CAffOpCode int    i [inline]
 

Definition at line 955 of file opcode.h.

References _I.

Referenced by clone.

virtual NLAISCRIPT::CAffOpCode::~CAffOpCode   [inline, virtual]
 

Definition at line 1010 of file opcode.h.


Member Function Documentation

const NLAIC::IBasicType* NLAISCRIPT::CAffOpCode::clone   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 979 of file opcode.h.

References _I, CAffOpCode, and x.

Referenced by newInstance.

void NLAISCRIPT::CAffOpCode::getDebugResult std::string &    str,
CCodeContext   context
const [inline, virtual]
 

gets debug string from the op-code.

Implements NLAISCRIPT::IOpCode.

Definition at line 972 of file opcode.h.

References _I, and NLAIC::stringGetBuild.

void NLAISCRIPT::CAffOpCode::getDebugString char *    const [inline]
 

Definition at line 994 of file opcode.h.

const NLAIC::CIdentType& NLAISCRIPT::CAffOpCode::getType   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 989 of file opcode.h.

void NLAISCRIPT::CAffOpCode::load NLMISC::IStream   is [inline, virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 1002 of file opcode.h.

References _I, and NLMISC::IStream::serial.

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

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

Implements NLAIC::IBasicType.

Definition at line 984 of file opcode.h.

References clone.

NLAIAGENT::TProcessStatement NLAISCRIPT::CAffOpCode::runOpCode CCodeContext   context [inline, virtual]
 

Computation of the op-code with a given context.

Implements NLAISCRIPT::IOpCode.

Definition at line 961 of file opcode.h.

References _I, NLAIC::IPointerGestion::incRef, NLAIAGENT::IObjectIA::ProcessIdle, and NLAIC::IPointerGestion::release.

void NLAISCRIPT::CAffOpCode::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 996 of file opcode.h.

References _I, and NLMISC::IStream::serial.


Member Data Documentation

int NLAISCRIPT::CAffOpCode::_I [private]
 

Heap position.

Definition at line 953 of file opcode.h.

Referenced by CAffOpCode, clone, getDebugResult, load, runOpCode, and save.

const NLAIC::CIdentType NLAISCRIPT::CAffOpCode::IdAffOpCode [static]
 

Initial value:

Definition at line 120 of file opcode_register.cpp.


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