"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xpdf/Function.h" between
xpdf-4.01.01.tar.gz and xpdf-4.02.tar.gz

About: Xpdf is a PDF viewer for X.

Function.h  (xpdf-4.01.01):Function.h  (xpdf-4.02)
skipping to change at line 41 skipping to change at line 41
#define funcMaxOutputs 32 #define funcMaxOutputs 32
#define sampledFuncMaxInputs 16 #define sampledFuncMaxInputs 16
class Function { class Function {
public: public:
Function(); Function();
virtual ~Function(); virtual ~Function();
// Construct a function. Returns NULL if unsuccessful. // Construct a function, with [expectedInputs] inputs and
static Function *parse(Object *funcObj, int recursion = 0); // [expectedOutputs] outputs. [expectedOutputs] can be -1 to
// indicate unknown. Returns NULL if unsuccessful.
static Function *parse(Object *funcObj, int expectedInputs,
int expectedOutputs, int recursion = 0);
// Initialize the entries common to all function types. // Initialize the entries common to all function types.
GBool init(Dict *dict); GBool init(Dict *dict);
virtual Function *copy() = 0; virtual Function *copy() = 0;
// Return the function type: // Return the function type:
// -1 : identity // -1 : identity
// 0 : sampled // 0 : sampled
// 2 : exponential // 2 : exponential
skipping to change at line 89 skipping to change at line 92
GBool hasRange; // set if range is defined GBool hasRange; // set if range is defined
}; };
//------------------------------------------------------------------------ //------------------------------------------------------------------------
// IdentityFunction // IdentityFunction
//------------------------------------------------------------------------ //------------------------------------------------------------------------
class IdentityFunction: public Function { class IdentityFunction: public Function {
public: public:
IdentityFunction(); IdentityFunction(int nInputs);
virtual ~IdentityFunction(); virtual ~IdentityFunction();
virtual Function *copy() { return new IdentityFunction(); } virtual Function *copy() { return new IdentityFunction(m); }
virtual int getType() { return -1; } virtual int getType() { return -1; }
virtual void transform(double *in, double *out); virtual void transform(double *in, double *out);
virtual GBool isOk() { return gTrue; } virtual GBool isOk() { return gTrue; }
private: private:
}; };
//------------------------------------------------------------------------ //------------------------------------------------------------------------
// SampledFunction // SampledFunction
//------------------------------------------------------------------------ //------------------------------------------------------------------------
skipping to change at line 176 skipping to change at line 179
GBool ok; GBool ok;
}; };
//------------------------------------------------------------------------ //------------------------------------------------------------------------
// StitchingFunction // StitchingFunction
//------------------------------------------------------------------------ //------------------------------------------------------------------------
class StitchingFunction: public Function { class StitchingFunction: public Function {
public: public:
StitchingFunction(Object *funcObj, Dict *dict, int recursion); StitchingFunction(Object *funcObj, Dict *dict, int expectedInputs,
int expectedOutputs, int recursion);
virtual ~StitchingFunction(); virtual ~StitchingFunction();
virtual Function *copy() { return new StitchingFunction(this); } virtual Function *copy() { return new StitchingFunction(this); }
virtual int getType() { return 3; } virtual int getType() { return 3; }
virtual void transform(double *in, double *out); virtual void transform(double *in, double *out);
virtual GBool isOk() { return ok; } virtual GBool isOk() { return ok; }
int getNumFuncs() { return k; } int getNumFuncs() { return k; }
Function *getFunc(int i) { return funcs[i]; } Function *getFunc(int i) { return funcs[i]; }
double *getBounds() { return bounds; } double *getBounds() { return bounds; }
double *getEncode() { return encode; } double *getEncode() { return encode; }
 End of changes. 4 change blocks. 
5 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)