UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
ZdRealFunc Class Reference

#include <zd_real_func.hpp>

Inheritance diagram for ZdRealFunc:
ZdFunction ZdFunction ZdDocument ZdDocument ZdDocument ZdDocument ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName

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 ()
 
ZqbNameoperator= (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 ()
 
ZqbNameoperator= (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
 

Detailed Description

Full featured implementation of function.

Constructor & Destructor Documentation

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 ZdRealFunc::~ZdRealFunc ( )
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 ZdRealFunc::~ZdRealFunc ( )
virtual

Destroy the function.

Member Function Documentation

virtual double ZdRealFunc::arg ( int  i)
virtual

Get value of argument in given point.

Implements ZdFunction.

virtual double ZdRealFunc::arg ( int  i)
virtual

Get value of argument in given point.

Implements ZdFunction.

virtual int ZdRealFunc::argIndex ( double  a)
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 int ZdRealFunc::argIndex ( double  a)
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 double ZdRealFunc::argStep ( )
virtual

Return step of argument in case argument has uniform step and 0 otherwise. Default implementation returns 0.

Reimplemented from ZdFunction.

virtual double ZdRealFunc::argStep ( )
virtual

Return step of argument in case argument has uniform step and 0 otherwise. Default implementation returns 0.

Reimplemented from ZdFunction.

virtual bool ZdRealFunc::compatibleType ( const char *  szType) const
virtual

Return true if given type is compatible with this document.

Reimplemented from ZdFunction.

virtual bool ZdRealFunc::compatibleType ( const char *  szType) const
virtual

Return true if given type is compatible with this document.

Reimplemented from ZdFunction.

virtual int ZdRealFunc::count ( )
virtual

Get number of points in function definition.

Implements ZdFunction.

virtual int ZdRealFunc::count ( )
virtual

Get number of points in function definition.

Implements ZdFunction.

virtual double ZdRealFunc::func ( int  i)
virtual

Get value of function in given point. Returned value is undefined if function is not defined for this argument.

Implements ZdFunction.

virtual double ZdRealFunc::func ( int  i)
virtual

Get value of function in given point. Returned value is undefined if function is not defined for this argument.

Implements ZdFunction.

virtual double ZdRealFunc::funcInterp ( double  a)
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 double ZdRealFunc::funcInterp ( double  a)
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 void ZdRealFunc::getArgBounds ( double  b[2])
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 void ZdRealFunc::getArgBounds ( double  b[2])
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 void ZdRealFunc::getFuncBounds ( double  b[2])
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 void ZdRealFunc::getFuncBounds ( double  b[2])
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 bool ZdRealFunc::isNullAll ( )
virtual

Return true if all function values are empty and false otherwise.

Reimplemented from ZdFunction.

virtual bool ZdRealFunc::isNullAll ( )
virtual

Return true if all function values are empty and false otherwise.

Reimplemented from ZdFunction.

virtual bool ZdRealFunc::isNullFunc ( int  i)
virtual

Return false if function's value is defined and true otherwise. Returns false in default implementation.

Reimplemented from ZdFunction.

virtual bool ZdRealFunc::isNullFunc ( int  i)
virtual

Return false if function's value is defined and true otherwise. Returns false in default implementation.

Reimplemented from ZdFunction.

virtual void ZdRealFunc::makeNullAll ( )
virtual

Make all function values to be null.

Reimplemented from ZdFunction.

virtual void ZdRealFunc::makeNullAll ( )
virtual

Make all function values to be null.

Reimplemented from ZdFunction.

virtual void ZdRealFunc::makeNullFunc ( int  i)
virtual

Make the function value in given point to be null.

Reimplemented from ZdFunction.

virtual void ZdRealFunc::makeNullFunc ( int  i)
virtual

Make the function value in given point to be null.

Reimplemented from ZdFunction.

virtual void ZdRealFunc::setFunc ( int  i,
double  fNewValue 
)
virtual

Assign new value to the function.

Reimplemented from ZdFunction.

virtual void ZdRealFunc::setFunc ( int  i,
double  fNewValue 
)
virtual

Assign new value to the function.

Reimplemented from ZdFunction.


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