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

Class CStackPointer. More...

#include <codage.h>

Inheritance diagram for NLAISCRIPT::CStackPointer:

NLAISCRIPT::CIndexStackPointer List of all members.

Public Methods

 CStackPointer (int count=1024 *8)
NLAIAGENT::IObjectIA *& operator[] (int i)
 Get the pointer in the position i. More...

 operator NLAIAGENT::IObjectIA * ()
 Get the IObjectIA pointer in current position. More...

virtual void operator-- (int)
 Dec the current position of the stack point by one. More...

virtual void operator-= (int k)
 Dec the current position of the stack point by k unite. More...

void addStack (int bp)
 set an bp shift to relative stack pointer _Bp. More...

void restoreStack ()
 restore the last _Bp shift to the stack pointer. More...

void setShift (int s)
 set an s shift to relative stack pointer _Sh. More...

void restoreShift ()
 restore the last _Sh shift to the stack pointer. More...

bool restoreStackState ()
 if there is any _Bp shift. More...

bool restoreShiftState ()
 if there is any _Sh shift. More...

 ~CStackPointer ()

Private Attributes

int _Count
 the count of allocation table. More...

int _Bp
 _Bp is a relative pointer to upright the stack point at the entry point of a methode. More...

int _Sh
 _Sh is a relative pointer to upright the stack after allocat the argument of a methode. More...

std::list< int > _Decalage
 list to storager the last shift release in _Bp. More...

std::list< int > _Shift
 list to storager the last shift release in _Sh. More...

NLAIAGENT::IObjectIA ** _Stack
 this IObjectIA table have _Count size. More...


Detailed Description

Class CStackPointer.

Defined a basic fonctionality of a stack index pointer.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 148 of file codage.h.


Constructor & Destructor Documentation

NLAISCRIPT::CStackPointer::CStackPointer int    count = 1024*8 [inline]
 

Definition at line 168 of file codage.h.

References _Bp, _Count, _Sh, and NLAISCRIPT::CIndexStackPointer::_Sp.

NLAISCRIPT::CStackPointer::~CStackPointer   [inline]
 

Definition at line 293 of file codage.h.

References NLAIC::IPointerGestion::release.


Member Function Documentation

void NLAISCRIPT::CStackPointer::addStack int    bp [inline]
 

set an bp shift to relative stack pointer _Bp.

Definition at line 245 of file codage.h.

NLAISCRIPT::CStackPointer::operator NLAIAGENT::IObjectIA *   [inline]
 

Get the IObjectIA pointer in current position.

Definition at line 194 of file codage.h.

References _Bp, _Count, _Sh, NLAISCRIPT::CIndexStackPointer::_Sp, and operator NLAIAGENT::IObjectIA *.

Referenced by operator NLAIAGENT::IObjectIA *.

virtual void NLAISCRIPT::CStackPointer::operator-- int    [inline, virtual]
 

Dec the current position of the stack point by one.

Reimplemented from NLAISCRIPT::CIndexStackPointer.

Definition at line 206 of file codage.h.

References NLAIC::IPointerGestion::release.

virtual void NLAISCRIPT::CStackPointer::operator-= int    k [inline, virtual]
 

Dec the current position of the stack point by k unite.

Reimplemented from NLAISCRIPT::CIndexStackPointer.

Definition at line 224 of file codage.h.

References NLAIC::IPointerGestion::release.

NLAIAGENT::IObjectIA*& NLAISCRIPT::CStackPointer::operator[] int    i [inline]
 

Get the pointer in the position i.

Definition at line 182 of file codage.h.

References _Bp, _Count, _Sh, and NLAISCRIPT::CIndexStackPointer::_Sp.

void NLAISCRIPT::CStackPointer::restoreShift   [inline]
 

restore the last _Sh shift to the stack pointer.

Definition at line 272 of file codage.h.

References s.

bool NLAISCRIPT::CStackPointer::restoreShiftState   [inline]
 

if there is any _Sh shift.

Definition at line 288 of file codage.h.

void NLAISCRIPT::CStackPointer::restoreStack   [inline]
 

restore the last _Bp shift to the stack pointer.

Definition at line 253 of file codage.h.

bool NLAISCRIPT::CStackPointer::restoreStackState   [inline]
 

if there is any _Bp shift.

Definition at line 282 of file codage.h.

void NLAISCRIPT::CStackPointer::setShift int    s [inline]
 

set an s shift to relative stack pointer _Sh.

Definition at line 264 of file codage.h.

References s.


Member Data Documentation

int NLAISCRIPT::CStackPointer::_Bp [private]
 

_Bp is a relative pointer to upright the stack point at the entry point of a methode.

Definition at line 154 of file codage.h.

Referenced by CStackPointer, operator NLAIAGENT::IObjectIA *, and operator[].

int NLAISCRIPT::CStackPointer::_Count [private]
 

the count of allocation table.

Definition at line 152 of file codage.h.

Referenced by CStackPointer, operator NLAIAGENT::IObjectIA *, and operator[].

std::list<int> NLAISCRIPT::CStackPointer::_Decalage [private]
 

list to storager the last shift release in _Bp.

Definition at line 160 of file codage.h.

int NLAISCRIPT::CStackPointer::_Sh [private]
 

_Sh is a relative pointer to upright the stack after allocat the argument of a methode.

Definition at line 157 of file codage.h.

Referenced by CStackPointer, operator NLAIAGENT::IObjectIA *, and operator[].

std::list<int> NLAISCRIPT::CStackPointer::_Shift [private]
 

list to storager the last shift release in _Sh.

Definition at line 162 of file codage.h.

NLAIAGENT::IObjectIA** NLAISCRIPT::CStackPointer::_Stack [private]
 

this IObjectIA table have _Count size.

Definition at line 165 of file codage.h.


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