UNIVERS
15.3
UNIVERS base processing software API
|
#include <zd_real_func.hpp>
Public Member Functions | |
ZdRealFunc (int n, double fArgStep=1.0, double fArg0=0.0, const char *szFuncName=NULL) | |
ZdRealFunc (int n, const double *pArg, const char *szFuncName=NULL) | |
ZdRealFunc (ZdFunction &zdFunc, const char *szFuncName=NULL) | |
virtual | ~ZdRealFunc () |
virtual bool | compatibleType (const char *szType) const |
virtual int | count () |
virtual double | arg (int i) |
virtual double | func (int i) |
virtual bool | isNullAll () |
virtual bool | isNullFunc (int i) |
virtual double | argStep () |
virtual void | getArgBounds (double b[2]) |
virtual void | getFuncBounds (double b[2]) |
virtual int | argIndex (double a) |
virtual double | funcInterp (double a) |
virtual void | setFunc (int i, double fNewValue) |
virtual void | makeNullFunc (int i) |
virtual void | makeNullAll () |
ZdRealFunc (int n, double fArgStep=1.0, double fArg0=0.0, const char *szFuncName=NULL) | |
ZdRealFunc (int n, const double *pArg, const char *szFuncName=NULL) | |
ZdRealFunc (ZdFunction &zdFunc, const char *szFuncName=NULL) | |
virtual | ~ZdRealFunc () |
virtual bool | compatibleType (const char *szType) const |
virtual int | count () |
virtual double | arg (int i) |
virtual double | func (int i) |
virtual bool | isNullAll () |
virtual bool | isNullFunc (int i) |
virtual double | argStep () |
virtual void | getArgBounds (double b[2]) |
virtual void | getFuncBounds (double b[2]) |
virtual int | argIndex (double a) |
virtual double | funcInterp (double a) |
virtual void | setFunc (int i, double fNewValue) |
virtual void | makeNullFunc (int i) |
virtual void | makeNullAll () |
Public Member Functions inherited from ZdFunction | |
ZdFunction (const char *szFuncName=NULL) | |
virtual | ~ZdFunction () |
virtual void | arg (std::vector< double > &vArg) |
virtual void | func (std::vector< double > &vFunc, double fNull=0.0) |
virtual double | minArg () |
virtual double | maxArg () |
double | minFunc () |
virtual double | maxFunc () |
ZdFunction (const char *szFuncName=NULL) | |
virtual | ~ZdFunction () |
virtual void | arg (std::vector< double > &vArg) |
virtual void | func (std::vector< double > &vFunc, double fNull=0.0) |
virtual double | minArg () |
virtual double | maxArg () |
double | minFunc () |
virtual double | maxFunc () |
Public Member Functions inherited from ZdDocument | |
ZdDocument (const char *szName=NULL) | |
virtual | ~ZdDocument () |
virtual void | updateViews () |
virtual bool | isChanged () |
virtual void | setChanges () |
virtual void | resetChanges () |
ZdDocument (const char *szName=NULL) | |
virtual | ~ZdDocument () |
virtual void | updateViews () |
virtual bool | isChanged () |
virtual void | setChanges () |
virtual void | resetChanges () |
Public Member Functions inherited from ZqbAutoName | |
ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL) | |
virtual | ~ZqbAutoName () |
ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL) | |
virtual | ~ZqbAutoName () |
Public Member Functions inherited from ZqbName | |
ZqbName (const char *szRoot, const char *szCustomName=NULL) | |
ZqbName (const ZqbName &name) | |
virtual | ~ZqbName () |
ZqbName & | operator= (const ZqbName &name) |
virtual const char * | getName () const |
virtual const char * | getType () const |
bool | hasName (const char *szString) const |
ZqbName (const char *szRoot, const char *szCustomName=NULL) | |
ZqbName (const ZqbName &name) | |
virtual | ~ZqbName () |
ZqbName & | operator= (const ZqbName &name) |
virtual const char * | getName () const |
virtual const char * | getType () const |
bool | hasName (const char *szString) const |
Protected Attributes | |
std::vector< double > | m_vArg |
std::vector< double > | m_vFunc |
std::vector< bool > | m_vNull |
ZdFVectorDouble * | m_zdFunc |
bool | m_bUniformArgStep |
double | m_fArgStep |
Protected Attributes inherited from ZdDocument | |
ZqbViewVector | m_Views |
Protected Attributes inherited from ZqbName | |
char * | m_szName |
char * | m_szRoot |
Full featured implementation of function.
ZdRealFunc::ZdRealFunc | ( | int | n, |
double | fArgStep = 1.0 , |
||
double | fArg0 = 0.0 , |
||
const char * | szFuncName = NULL |
||
) |
Create empty function with even step of argument.
ZdRealFunc::ZdRealFunc | ( | int | n, |
const double * | pArg, | ||
const char * | szFuncName = NULL |
||
) |
Create empty function with arbitrary distributed argument.
ZdRealFunc::ZdRealFunc | ( | ZdFunction & | zdFunc, |
const char * | szFuncName = NULL |
||
) |
Create copy of function.
|
virtual |
Destroy the function.
ZdRealFunc::ZdRealFunc | ( | int | n, |
double | fArgStep = 1.0 , |
||
double | fArg0 = 0.0 , |
||
const char * | szFuncName = NULL |
||
) |
Create empty function with even step of argument.
ZdRealFunc::ZdRealFunc | ( | int | n, |
const double * | pArg, | ||
const char * | szFuncName = NULL |
||
) |
Create empty function with arbitrary distributed argument.
ZdRealFunc::ZdRealFunc | ( | ZdFunction & | zdFunc, |
const char * | szFuncName = NULL |
||
) |
Create copy of function.
|
virtual |
Destroy the function.
|
virtual |
Get value of argument in given point.
Implements ZdFunction.
|
virtual |
Get value of argument in given point.
Implements ZdFunction.
|
virtual |
Return index of argument the most close to given value. Complexity of default implementation is O(N) where N is number of points.
Reimplemented from ZdFunction.
|
virtual |
Return index of argument the most close to given value. Complexity of default implementation is O(N) where N is number of points.
Reimplemented from ZdFunction.
|
virtual |
Return step of argument in case argument has uniform step and 0 otherwise. Default implementation returns 0.
Reimplemented from ZdFunction.
|
virtual |
Return step of argument in case argument has uniform step and 0 otherwise. Default implementation returns 0.
Reimplemented from ZdFunction.
|
virtual |
Return true if given type is compatible with this document.
Reimplemented from ZdFunction.
|
virtual |
Return true if given type is compatible with this document.
Reimplemented from ZdFunction.
|
virtual |
Get number of points in function definition.
Implements ZdFunction.
|
virtual |
Get number of points in function definition.
Implements ZdFunction.
|
virtual |
Get value of function in given point. Returned value is undefined if function is not defined for this argument.
Implements ZdFunction.
|
virtual |
Get value of function in given point. Returned value is undefined if function is not defined for this argument.
Implements ZdFunction.
|
virtual |
Return interpolation of the function in given argument. Default implementation performs linear interpolation of function value in range [argIndex(),argIndex()+1] or [argIndex()-1,argIndex()]. Complexity of default implementation is O(N) where N is number of points.
Reimplemented from ZdFunction.
|
virtual |
Return interpolation of the function in given argument. Default implementation performs linear interpolation of function value in range [argIndex(),argIndex()+1] or [argIndex()-1,argIndex()]. Complexity of default implementation is O(N) where N is number of points.
Reimplemented from ZdFunction.
|
virtual |
Return minimum and maximum values for argument. Default implementation calculates minimum and maximum values in cycle. If number of points is zero then {0,0} is returned.
Reimplemented from ZdFunction.
|
virtual |
Return minimum and maximum values for argument. Default implementation calculates minimum and maximum values in cycle. If number of points is zero then {0,0} is returned.
Reimplemented from ZdFunction.
|
virtual |
Return minimum and maximum values for function. Default implementation calculates minimum and maximum values in cycle. If number of points is zero or there is no points with defined value then {0,0} is returned.
Reimplemented from ZdFunction.
|
virtual |
Return minimum and maximum values for function. Default implementation calculates minimum and maximum values in cycle. If number of points is zero or there is no points with defined value then {0,0} is returned.
Reimplemented from ZdFunction.
|
virtual |
Return true if all function values are empty and false otherwise.
Reimplemented from ZdFunction.
|
virtual |
Return true if all function values are empty and false otherwise.
Reimplemented from ZdFunction.
|
virtual |
Return false if function's value is defined and true otherwise. Returns false in default implementation.
Reimplemented from ZdFunction.
|
virtual |
Return false if function's value is defined and true otherwise. Returns false in default implementation.
Reimplemented from ZdFunction.
|
virtual |
Make all function values to be null.
Reimplemented from ZdFunction.
|
virtual |
Make all function values to be null.
Reimplemented from ZdFunction.
|
virtual |
Make the function value in given point to be null.
Reimplemented from ZdFunction.
|
virtual |
Make the function value in given point to be null.
Reimplemented from ZdFunction.
|
virtual |
Assign new value to the function.
Reimplemented from ZdFunction.
|
virtual |
Assign new value to the function.
Reimplemented from ZdFunction.