Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PSStack Class Reference

Collaboration diagram for PSStack:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PSStack ()
void pushBool (GBool booln)
void pushInt (int intg)
void pushReal (fouble real)
GBool popBool ()
int popInt ()
fouble popNum ()
GBool empty ()
GBool topIsInt ()
GBool topTwoAreInts ()
GBool topIsReal ()
GBool topTwoAreNums ()
void copy (int n)
void roll (int n, int j)
void index (int i)
void pop ()

Private Member Functions

GBool checkOverflow (int n=1)
GBool checkUnderflow ()
GBool checkType (PSObjectType t1, PSObjectType t2)

Private Attributes

PSObject stack [psStackSize]
int sp

Constructor & Destructor Documentation

PSStack::PSStack  )  [inline]
 

Definition at line 813 of file Function.cc.

References psStackSize, and sp.


Member Function Documentation

GBool PSStack::checkOverflow int  n = 1  )  [private]
 

Definition at line 846 of file Function.cc.

References error(), gFalse, gTrue, and sp.

Referenced by copy(), index(), pushBool(), pushInt(), and pushReal().

GBool PSStack::checkType PSObjectType  t1,
PSObjectType  t2
[private]
 

Definition at line 862 of file Function.cc.

References error(), gFalse, gTrue, sp, stack, and type.

Referenced by popBool(), popInt(), and popNum().

GBool PSStack::checkUnderflow  )  [private]
 

Definition at line 854 of file Function.cc.

References error(), gFalse, gTrue, psStackSize, and sp.

Referenced by pop(), popBool(), popInt(), and popNum().

void PSStack::copy int  n  ) 
 

Definition at line 916 of file Function.cc.

References checkOverflow(), i, sp, and stack.

Referenced by PostScriptFunction::exec().

GBool PSStack::empty  )  [inline]
 

Definition at line 820 of file Function.cc.

References psStackSize, and sp.

void PSStack::index int  i  ) 
 

Definition at line 952 of file Function.cc.

References checkOverflow(), sp, and stack.

Referenced by PostScriptFunction::exec().

void PSStack::pop  ) 
 

Definition at line 960 of file Function.cc.

References checkUnderflow(), and sp.

Referenced by PostScriptFunction::exec().

GBool PSStack::popBool  ) 
 

Definition at line 891 of file Function.cc.

References PSObject::booln, checkType(), checkUnderflow(), gFalse, psBool, sp, and stack.

Referenced by PostScriptFunction::exec().

int PSStack::popInt  ) 
 

Definition at line 898 of file Function.cc.

References checkType(), checkUnderflow(), PSObject::intg, psInt, sp, and stack.

Referenced by PostScriptFunction::exec().

fouble PSStack::popNum  ) 
 

Definition at line 905 of file Function.cc.

References checkType(), checkUnderflow(), PSObject::intg, psInt, psReal, PSObject::real, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec().

void PSStack::pushBool GBool  booln  ) 
 

Definition at line 870 of file Function.cc.

References PSObject::booln, checkOverflow(), psBool, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec().

void PSStack::pushInt int  intg  ) 
 

Definition at line 877 of file Function.cc.

References checkOverflow(), PSObject::intg, psInt, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec().

void PSStack::pushReal fouble  real  ) 
 

Definition at line 884 of file Function.cc.

References checkOverflow(), psReal, PSObject::real, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec(), and PostScriptFunction::transform().

void PSStack::roll int  n,
int  j
 

Definition at line 928 of file Function.cc.

References i, sp, and stack.

Referenced by PostScriptFunction::exec().

GBool PSStack::topIsInt  )  [inline]
 

Definition at line 821 of file Function.cc.

References psInt, psStackSize, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec().

GBool PSStack::topIsReal  )  [inline]
 

Definition at line 826 of file Function.cc.

References psReal, psStackSize, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec().

GBool PSStack::topTwoAreInts  )  [inline]
 

Definition at line 822 of file Function.cc.

References psInt, psStackSize, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec().

GBool PSStack::topTwoAreNums  )  [inline]
 

Definition at line 827 of file Function.cc.

References psInt, psReal, psStackSize, sp, stack, and PSObject::type.

Referenced by PostScriptFunction::exec().


Member Data Documentation

int PSStack::sp [private]
 

Definition at line 843 of file Function.cc.

Referenced by checkOverflow(), checkType(), checkUnderflow(), copy(), empty(), index(), pop(), popBool(), popInt(), popNum(), PSStack(), pushBool(), pushInt(), pushReal(), roll(), topIsInt(), topIsReal(), topTwoAreInts(), and topTwoAreNums().

PSObject PSStack::stack[psStackSize] [private]
 

Definition at line 842 of file Function.cc.

Referenced by checkType(), copy(), index(), popBool(), popInt(), popNum(), pushBool(), pushInt(), pushReal(), roll(), topIsInt(), topIsReal(), topTwoAreInts(), and topTwoAreNums().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:45:51 2005 for OPIE by  doxygen 1.4.2