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

PostScriptFunction Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/Function.h>

Inheritance diagram for PostScriptFunction:

Inheritance graph
[legend]
Collaboration diagram for PostScriptFunction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PostScriptFunction (Object *funcObj, Dict *dict)
virtual ~PostScriptFunction ()
virtual Functioncopy ()
virtual void transform (fouble *in, fouble *out)
virtual GBool isOk ()

Private Member Functions

 PostScriptFunction (PostScriptFunction *func)
GBool parseCode (Stream *str, int *codePtr)
GStringgetToken (Stream *str)
void resizeCode (int newSize)
void exec (PSStack *stack, int codePtr)

Private Attributes

PSObjectcode
int codeSize
GBool ok

Constructor & Destructor Documentation

PostScriptFunction::PostScriptFunction Object funcObj,
Dict dict
 

Definition at line 967 of file Function.cc.

References Stream::close(), GString::cmp(), code, codeSize, error(), Object::getStream(), getToken(), gFalse, gTrue, Function::hasRange, Function::init(), Object::isStream(), NULL, ok, parseCode(), Stream::reset(), and str.

Referenced by copy().

PostScriptFunction::~PostScriptFunction  )  [virtual]
 

Definition at line 1022 of file Function.cc.

References code, and gfree().

PostScriptFunction::PostScriptFunction PostScriptFunction func  )  [private]
 

Definition at line 1016 of file Function.cc.

References code, codeSize, and gmalloc().


Member Function Documentation

virtual Function* PostScriptFunction::copy  )  [inline, virtual]
 

Implements Function.

Definition at line 164 of file Function.h.

References PostScriptFunction().

void PostScriptFunction::exec PSStack stack,
int  codePtr
[private]
 

Definition at line 1209 of file Function.cc.

References abs, PSObject::blk, code, PSStack::copy(), error(), fabs(), gFalse, gTrue, PSStack::index(), PSStack::pop(), PSStack::popBool(), PSStack::popInt(), PSStack::popNum(), psInt, psOpAbs, psOpAdd, psOpAnd, psOpAtan, psOpBitshift, psOpCeiling, psOpCopy, psOpCos, psOpCvi, psOpCvr, psOpDiv, psOpDup, psOpEq, psOperator, psOpExch, psOpExp, psOpFalse, psOpFloor, psOpGe, psOpGt, psOpIdiv, psOpIf, psOpIfelse, psOpIndex, psOpLe, psOpLn, psOpLog, psOpLt, psOpMod, psOpMul, psOpNe, psOpNeg, psOpNot, psOpOr, psOpPop, psOpReturn, psOpRoll, psOpRound, psOpSin, psOpSqrt, psOpSub, psOpTrue, psOpTruncate, psOpXor, psReal, PSStack::pushBool(), PSStack::pushInt(), PSStack::pushReal(), PSStack::roll(), sqrt(), PSStack::topIsInt(), PSStack::topIsReal(), PSStack::topTwoAreInts(), PSStack::topTwoAreNums(), and type.

Referenced by transform().

GString * PostScriptFunction::getToken Stream str  )  [private]
 

Definition at line 1170 of file Function.cc.

References GString::append(), Stream::getChar(), Stream::lookChar(), and s.

Referenced by parseCode(), and PostScriptFunction().

virtual GBool PostScriptFunction::isOk  )  [inline, virtual]
 

Implements Function.

Definition at line 166 of file Function.h.

References ok.

GBool PostScriptFunction::parseCode Stream str,
int *  codePtr
[private]
 

Definition at line 1050 of file Function.cc.

References PSObject::blk, GString::cmp(), cmp(), code, error(), GString::getCString(), getToken(), gFalse, gTrue, PSObject::intg, nPSOps, PSObject::op, p, psBlock, psInt, psOperator, psOpIf, psOpIfelse, psOpNames, psOpReturn, psReal, PSObject::real, resizeCode(), and PSObject::type.

Referenced by PostScriptFunction().

void PostScriptFunction::resizeCode int  newSize  )  [private]
 

Definition at line 1202 of file Function.cc.

References code, codeSize, and grealloc().

Referenced by parseCode().

void PostScriptFunction::transform fouble in,
fouble out
[virtual]
 

Implements Function.

Definition at line 1026 of file Function.cc.

References exec(), i, Function::m, Function::n, PSStack::pushReal(), and Function::range.


Member Data Documentation

PSObject* PostScriptFunction::code [private]
 

Definition at line 176 of file Function.h.

Referenced by exec(), parseCode(), PostScriptFunction(), resizeCode(), and ~PostScriptFunction().

int PostScriptFunction::codeSize [private]
 

Definition at line 177 of file Function.h.

Referenced by PostScriptFunction(), and resizeCode().

GBool PostScriptFunction::ok [private]
 

Definition at line 178 of file Function.h.

Referenced by isOk(), and PostScriptFunction().


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