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

Class CAffHeapMemberiOpCode. More...

#include <opcode.h>

Inheritance diagram for NLAISCRIPT::CAffHeapMemberiOpCode:

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

Public Methods

 CAffHeapMemberiOpCode (std::list< sint32 > i, sint32 n)
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 save (NLMISC::IStream &os)
 Save the class in a stream. More...

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

virtual ~CAffHeapMemberiOpCode ()

Static Public Attributes

const NLAIC::CIdentType IdAffHeapMemberiOpCode

Private Attributes

std::list< sint32_I
sint32 _N

Detailed Description

Class CAffHeapMemberiOpCode.

This class define an expression like: *heap[h].member_1.member_2...member_n = *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 1058 of file opcode.h.


Constructor & Destructor Documentation

NLAISCRIPT::CAffHeapMemberiOpCode::CAffHeapMemberiOpCode std::list< sint32   i,
sint32    n
[inline]
 

Definition at line 1066 of file opcode.h.

References _N, and sint32.

Referenced by clone.

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

Definition at line 1108 of file opcode.h.


Member Function Documentation

const NLAIC::IBasicType* NLAISCRIPT::CAffHeapMemberiOpCode::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 1076 of file opcode.h.

References _N, CAffHeapMemberiOpCode, and x.

Referenced by newInstance.

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

gets debug string from the op-code.

Implements NLAISCRIPT::IOpCode.

Definition at line 431 of file opcode.cpp.

References _I, _N, sint32, and NLAIC::stringGetBuild.

const NLAIC::CIdentType& NLAISCRIPT::CAffHeapMemberiOpCode::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 1086 of file opcode.h.

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

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 1100 of file opcode.h.

References _N, NLMISC::IStream::serial, NLMISC::IStream::serialCont, and sint32.

const NLAIC::IBasicType* NLAISCRIPT::CAffHeapMemberiOpCode::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 1081 of file opcode.h.

References clone.

NLAIAGENT::TProcessStatement NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode CCodeContext   context [virtual]
 

Computation of the op-code with a given context.

Implements NLAISCRIPT::IOpCode.

Definition at line 413 of file opcode.cpp.

References _I, _N, NLAIAGENT::IObjectIA::getStaticMember, NLAIC::IPointerGestion::incRef, NLAIAGENT::IObjectIA::setStaticMember, and sint32.

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

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 1092 of file opcode.h.

References _N, NLMISC::IStream::serial, NLMISC::IStream::serialCont, and sint32.


Member Data Documentation

std::list<sint32> NLAISCRIPT::CAffHeapMemberiOpCode::_I [private]
 

Definition at line 1063 of file opcode.h.

Referenced by getDebugResult, and runOpCode.

sint32 NLAISCRIPT::CAffHeapMemberiOpCode::_N [private]
 

Definition at line 1064 of file opcode.h.

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

const NLAIC::CIdentType NLAISCRIPT::CAffHeapMemberiOpCode::IdAffHeapMemberiOpCode [static]
 

Initial value:

Definition at line 137 of file opcode_register.cpp.


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