w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

SampledFunction Class Reference

#include <Function.h>

Inheritance diagram for SampledFunction:
[legend]
Collaboration diagram for SampledFunction:
[legend]

Public Member Functions

 SampledFunction (Object *funcObj, Dict *dict)
 
virtual ~SampledFunction ()
 
virtual Functioncopy ()
 
virtual int getType ()
 
virtual void transform (double *in, double *out)
 
virtual GBool isOk ()
 
int getSampleSize (int i)
 
double getEncodeMin (int i)
 
double getEncodeMax (int i)
 
double getDecodeMin (int i)
 
double getDecodeMax (int i)
 
double * getSamples ()
 
 SampledFunction (Object *funcObj, Dict *dict)
 
 ~SampledFunction () override
 
Functioncopy () const override
 
int getType () const override
 
void transform (const double *in, double *out) const override
 
bool isOk () const override
 
bool hasDifferentResultSet (const Function *func) const override
 
int getSampleSize (int i) const
 
double getEncodeMin (int i) const
 
double getEncodeMax (int i) const
 
double getDecodeMin (int i) const
 
double getDecodeMax (int i) const
 
const double * getSamples () const
 
int getSampleNumber () const
 
 SampledFunction (Object *funcObj, Dict *dict)
 
 ~SampledFunction () override
 
Functioncopy () const override
 
int getType () const override
 
void transform (const double *in, double *out) const override
 
bool isOk () const override
 
bool hasDifferentResultSet (const Function *func) const override
 
int getSampleSize (int i) const
 
double getEncodeMin (int i) const
 
double getEncodeMax (int i) const
 
double getDecodeMin (int i) const
 
double getDecodeMax (int i) const
 
const double * getSamples () const
 
int getSampleNumber () const
 
- Public Member Functions inherited from Function
 Function ()
 
virtual ~Function ()
 
GBool init (Dict *dict)
 
int getInputSize ()
 
int getOutputSize ()
 
double getDomainMin (int i)
 
double getDomainMax (int i)
 
double getRangeMin (int i)
 
double getRangeMax (int i)
 
GBool getHasRange ()
 
 Function ()
 
virtual ~Function ()
 
 Function (const Function &)=delete
 
Functionoperator= (const Function &other)=delete
 
bool init (Dict *dict)
 
int getInputSize () const
 
int getOutputSize () const
 
double getDomainMin (int i) const
 
double getDomainMax (int i) const
 
double getRangeMin (int i) const
 
double getRangeMax (int i) const
 
bool getHasRange () const
 
 Function ()
 
virtual ~Function ()
 
 Function (const Function &)=delete
 
Functionoperator= (const Function &other)=delete
 
bool init (Dict *dict)
 
int getInputSize () const
 
int getOutputSize () const
 
double getDomainMin (int i) const
 
double getDomainMax (int i) const
 
double getRangeMin (int i) const
 
double getRangeMax (int i) const
 
bool getHasRange () const
 

Private Member Functions

 SampledFunction (SampledFunction *func)
 
 SampledFunction (const SampledFunction *func)
 
 SampledFunction (const SampledFunction *func)
 

Private Attributes

int sampleSize [32]
 
double encode [32][2]
 
double decode [32][2]
 
double inputMul [32]
 
intidxOffset
 
double * samples
 
int nSamples
 
double * sBuf
 
double cacheIn [32]
 
double cacheOut [32]
 
GBool ok
 
bool ok
 

Additional Inherited Members

- Static Public Member Functions inherited from Function
static Functionparse (Object *funcObj, int expectedInputs, int expectedOutputs, int recursion=0)
 
static Functionparse (Object *funcObj)
 
static Functionparse (Object *funcObj)
 
- Protected Member Functions inherited from Function
 Function (const Function *func)
 
 Function (const Function *func)
 
- Static Protected Member Functions inherited from Function
static Functionparse (Object *funcObj, std::set< int > *usedParents)
 
static Functionparse (Object *funcObj, std::set< int > *usedParents)
 
- Protected Attributes inherited from Function
int m
 
int n
 
double domain [32][2]
 
double range [32][2]
 
GBool hasRange
 
bool hasRange
 

Detailed Description

Definition at line 106 of file Function.h.

Constructor & Destructor Documentation

◆ SampledFunction() [1/6]

◆ ~SampledFunction() [1/3]

SampledFunction::~SampledFunction ( )
virtual

Definition at line 415 of file Function.cc.

References gfree, idxOffset, samples, and sBuf.

◆ SampledFunction() [2/6]

SampledFunction::SampledFunction ( SampledFunction func)
private

Definition at line 427 of file Function.cc.

References func, gmallocn(), idxOffset, Function::m, memcpy, nSamples, samples, and sBuf.

◆ SampledFunction() [3/6]

SampledFunction::SampledFunction ( Object funcObj,
Dict dict 
)

◆ ~SampledFunction() [2/3]

SampledFunction::~SampledFunction ( )
override

◆ SampledFunction() [4/6]

SampledFunction::SampledFunction ( const SampledFunction func)
private

◆ SampledFunction() [5/6]

SampledFunction::SampledFunction ( Object funcObj,
Dict dict 
)

◆ ~SampledFunction() [3/3]

SampledFunction::~SampledFunction ( )
override

◆ SampledFunction() [6/6]

SampledFunction::SampledFunction ( const SampledFunction func)
private

Member Function Documentation

◆ copy() [1/3]

virtual Function* SampledFunction::copy ( )
inlinevirtual

Implements Function.

Definition at line 111 of file Function.h.

References SampledFunction().

◆ copy() [2/3]

Function* SampledFunction::copy ( ) const
inlineoverridevirtual

Implements Function.

Definition at line 127 of file Function.h.

References SampledFunction().

◆ copy() [3/3]

Function* SampledFunction::copy ( ) const
inlineoverridevirtual

Implements Function.

Definition at line 127 of file Function.h.

References SampledFunction().

◆ getDecodeMax() [1/3]

double SampledFunction::getDecodeMax ( int  i)
inline

Definition at line 120 of file Function.h.

References decode, and i.

Referenced by PSOutputDev::cvtFunction().

◆ getDecodeMax() [2/3]

double SampledFunction::getDecodeMax ( int  i) const
inline

Definition at line 137 of file Function.h.

References decode, and i.

◆ getDecodeMax() [3/3]

double SampledFunction::getDecodeMax ( int  i) const
inline

Definition at line 137 of file Function.h.

References decode, and i.

◆ getDecodeMin() [1/3]

double SampledFunction::getDecodeMin ( int  i)
inline

Definition at line 119 of file Function.h.

References decode, and i.

Referenced by PSOutputDev::cvtFunction().

◆ getDecodeMin() [2/3]

double SampledFunction::getDecodeMin ( int  i) const
inline

Definition at line 136 of file Function.h.

References decode, and i.

◆ getDecodeMin() [3/3]

double SampledFunction::getDecodeMin ( int  i) const
inline

Definition at line 136 of file Function.h.

References decode, and i.

◆ getEncodeMax() [1/3]

double SampledFunction::getEncodeMax ( int  i)
inline

Definition at line 118 of file Function.h.

References encode, and i.

Referenced by PSOutputDev::cvtFunction().

◆ getEncodeMax() [2/3]

double SampledFunction::getEncodeMax ( int  i) const
inline

Definition at line 135 of file Function.h.

References encode, and i.

◆ getEncodeMax() [3/3]

double SampledFunction::getEncodeMax ( int  i) const
inline

Definition at line 135 of file Function.h.

References encode, and i.

◆ getEncodeMin() [1/3]

double SampledFunction::getEncodeMin ( int  i)
inline

Definition at line 117 of file Function.h.

References encode, and i.

Referenced by PSOutputDev::cvtFunction().

◆ getEncodeMin() [2/3]

double SampledFunction::getEncodeMin ( int  i) const
inline

Definition at line 134 of file Function.h.

References encode, and i.

◆ getEncodeMin() [3/3]

double SampledFunction::getEncodeMin ( int  i) const
inline

Definition at line 134 of file Function.h.

References encode, and i.

◆ getSampleNumber() [1/2]

int SampledFunction::getSampleNumber ( ) const
inline

Definition at line 139 of file Function.h.

References nSamples.

Referenced by hasDifferentResultSet().

◆ getSampleNumber() [2/2]

int SampledFunction::getSampleNumber ( ) const
inline

Definition at line 139 of file Function.h.

References nSamples.

◆ getSamples() [1/3]

double* SampledFunction::getSamples ( )
inline

Definition at line 121 of file Function.h.

References samples.

Referenced by PSOutputDev::cvtFunction(), and hasDifferentResultSet().

◆ getSamples() [2/3]

const double* SampledFunction::getSamples ( ) const
inline

Definition at line 138 of file Function.h.

References samples.

◆ getSamples() [3/3]

const double* SampledFunction::getSamples ( ) const
inline

Definition at line 138 of file Function.h.

References samples.

◆ getSampleSize() [1/3]

int SampledFunction::getSampleSize ( int  i)
inline

Definition at line 116 of file Function.h.

References i, and sampleSize.

Referenced by PSOutputDev::cvtFunction().

◆ getSampleSize() [2/3]

int SampledFunction::getSampleSize ( int  i) const
inline

Definition at line 133 of file Function.h.

References i, and sampleSize.

◆ getSampleSize() [3/3]

int SampledFunction::getSampleSize ( int  i) const
inline

Definition at line 133 of file Function.h.

References i, and sampleSize.

◆ getType() [1/3]

virtual int SampledFunction::getType ( )
inlinevirtual

Implements Function.

Definition at line 112 of file Function.h.

◆ getType() [2/3]

int SampledFunction::getType ( ) const
inlineoverridevirtual

Implements Function.

Definition at line 128 of file Function.h.

◆ getType() [3/3]

int SampledFunction::getType ( ) const
inlineoverridevirtual

Implements Function.

Definition at line 128 of file Function.h.

◆ hasDifferentResultSet() [1/2]

bool SampledFunction::hasDifferentResultSet ( const Function func) const
overridevirtual

Reimplemented from Function.

Definition at line 524 of file Function.cc.

References func, getSampleNumber(), getSamples(), i, nSamples, and samples.

◆ hasDifferentResultSet() [2/2]

bool SampledFunction::hasDifferentResultSet ( const Function func) const
overridevirtual

Reimplemented from Function.

◆ isOk() [1/3]

virtual GBool SampledFunction::isOk ( )
inlinevirtual

Implements Function.

Definition at line 114 of file Function.h.

References ok.

◆ isOk() [2/3]

bool SampledFunction::isOk ( ) const
inlineoverridevirtual

Implements Function.

Definition at line 130 of file Function.h.

References ok.

◆ isOk() [3/3]

bool SampledFunction::isOk ( ) const
inlineoverridevirtual

Implements Function.

Definition at line 130 of file Function.h.

References ok.

◆ transform() [1/3]

void SampledFunction::transform ( const double *  in,
double *  out 
) const
overridevirtual

◆ transform() [2/3]

void SampledFunction::transform ( const double *  in,
double *  out 
) const
overridevirtual

Implements Function.

◆ transform() [3/3]

void SampledFunction::transform ( double *  in,
double *  out 
)
virtual

Member Data Documentation

◆ cacheIn

double SampledFunction::cacheIn
mutableprivate

Definition at line 139 of file Function.h.

Referenced by SampledFunction(), and transform().

◆ cacheOut

double SampledFunction::cacheOut
mutableprivate

Definition at line 140 of file Function.h.

Referenced by SampledFunction(), and transform().

◆ decode

double SampledFunction::decode
private

Definition at line 132 of file Function.h.

Referenced by getDecodeMax(), getDecodeMin(), SampledFunction(), and transform().

◆ encode

double SampledFunction::encode
private

Definition at line 130 of file Function.h.

Referenced by getEncodeMax(), getEncodeMin(), SampledFunction(), and transform().

◆ idxOffset

int * SampledFunction::idxOffset
private

Definition at line 135 of file Function.h.

Referenced by SampledFunction(), transform(), and ~SampledFunction().

◆ inputMul

double SampledFunction::inputMul
private

Definition at line 134 of file Function.h.

Referenced by SampledFunction(), and transform().

◆ nSamples

int SampledFunction::nSamples
private

Definition at line 137 of file Function.h.

Referenced by getSampleNumber(), hasDifferentResultSet(), SampledFunction(), and transform().

◆ ok [1/2]

bool SampledFunction::ok
private

Definition at line 141 of file Function.h.

Referenced by isOk(), and SampledFunction().

◆ ok [2/2]

bool SampledFunction::ok
private

Definition at line 158 of file Function.h.

◆ samples

double * SampledFunction::samples
private

◆ sampleSize

int SampledFunction::sampleSize
private

Definition at line 128 of file Function.h.

Referenced by getSampleSize(), SampledFunction(), and transform().

◆ sBuf

double * SampledFunction::sBuf
private

Definition at line 138 of file Function.h.

Referenced by SampledFunction(), transform(), and ~SampledFunction().


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