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

Class CIndexStackPointer. More...

#include <codage.h>

Inheritance diagram for NLAISCRIPT::CIndexStackPointer:

NLAISCRIPT::CStackPointer List of all members.

Public Methods

 CIndexStackPointer ()
virtual operator int ()
 To get the pointer. More...

virtual void operator++ (int)
 To inc the pointer. More...

virtual void operator-- (int)
 To dec the pointer. More...

virtual void operator+= (int k)
 To add by k range. More...

virtual void operator-= (int k)
 To dec by k range. More...

virtual void pushMark ()
 Add a mark to store the pointer possition in a list. More...

virtual int popMark ()
 Get the last mark pushed in the list. More...

virtual int markSize ()
virtual int mark ()
 Get the last mark. More...

void clear ()
 Reinitializ the stack manager. More...

virtual ~CIndexStackPointer ()

Protected Attributes

int _Sp
 Index of the stack pointer. More...


Private Attributes

std::list< int > _Marque
 List of mark for the pop-push mark method. More...


Detailed Description

Class CIndexStackPointer.

Defined a basic fonctionality of an index pointer.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 52 of file codage.h.


Constructor & Destructor Documentation

NLAISCRIPT::CIndexStackPointer::CIndexStackPointer   [inline]
 

Definition at line 63 of file codage.h.

References _Sp.

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

Definition at line 130 of file codage.h.


Member Function Documentation

void NLAISCRIPT::CIndexStackPointer::clear   [inline]
 

Reinitializ the stack manager.

Definition at line 124 of file codage.h.

References _Sp.

virtual int NLAISCRIPT::CIndexStackPointer::mark   [inline, virtual]
 

Get the last mark.

Definition at line 118 of file codage.h.

virtual int NLAISCRIPT::CIndexStackPointer::markSize   [inline, virtual]
 

Definition at line 112 of file codage.h.

virtual NLAISCRIPT::CIndexStackPointer::operator int   [inline, virtual]
 

To get the pointer.

Definition at line 68 of file codage.h.

References _Sp.

virtual void NLAISCRIPT::CIndexStackPointer::operator++ int    [inline, virtual]
 

To inc the pointer.

Definition at line 74 of file codage.h.

References _Sp.

virtual void NLAISCRIPT::CIndexStackPointer::operator+= int    k [inline, virtual]
 

To add by k range.

Definition at line 86 of file codage.h.

References _Sp.

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

To dec the pointer.

Reimplemented in NLAISCRIPT::CStackPointer.

Definition at line 80 of file codage.h.

References _Sp.

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

To dec by k range.

Reimplemented in NLAISCRIPT::CStackPointer.

Definition at line 92 of file codage.h.

References _Sp.

virtual int NLAISCRIPT::CIndexStackPointer::popMark   [inline, virtual]
 

Get the last mark pushed in the list.

Definition at line 104 of file codage.h.

virtual void NLAISCRIPT::CIndexStackPointer::pushMark   [inline, virtual]
 

Add a mark to store the pointer possition in a list.

Definition at line 98 of file codage.h.

References _Sp.


Member Data Documentation

std::list<int> NLAISCRIPT::CIndexStackPointer::_Marque [private]
 

List of mark for the pop-push mark method.

Definition at line 60 of file codage.h.

int NLAISCRIPT::CIndexStackPointer::_Sp [protected]
 

Index of the stack pointer.

Definition at line 56 of file codage.h.

Referenced by CIndexStackPointer, clear, NLAISCRIPT::CStackPointer::CStackPointer, operator int, NLAISCRIPT::CStackPointer::operator NLAIAGENT::IObjectIA *, operator++, operator+=, operator--, operator-=, NLAISCRIPT::CStackPointer::operator[], and pushMark.


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