UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
ZdFVector< T > Class Template Reference

#include <zd_f_vector.hpp>

Inheritance diagram for ZdFVector< T >:
ZdFunction ZdFunction ZdDocument ZdDocument ZdDocument ZdDocument ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName ZqbAutoName

Public Member Functions

 ZdFVector (int n, T *pFunc, double fArgStep=1.0, double fArg0=0.0)
 
 ZdFVector (int n, T *pArg, T *pFunc)
 
 ZdFVector (int n, const T *pArg, const T *pFunc)
 
 ZdFVector (std::vector< T > *pvArg, std::vector< T > *pvFunc)
 
virtual ~ZdFVector ()
 
virtual int count ()
 
virtual double argStep ()
 
virtual double arg (int i)
 
virtual double func (int i)
 
virtual void setFunc (int i, double fNewValue)
 
 ZdFVector (int n, T *pFunc, double fArgStep=1.0, double fArg0=0.0)
 
 ZdFVector (int n, T *pArg, T *pFunc)
 
 ZdFVector (int n, const T *pArg, const T *pFunc)
 
 ZdFVector (std::vector< T > *pvArg, std::vector< T > *pvFunc)
 
virtual ~ZdFVector ()
 
virtual int count ()
 
virtual double argStep ()
 
virtual double arg (int i)
 
virtual double func (int i)
 
virtual void setFunc (int i, double fNewValue)
 
- Public Member Functions inherited from ZdFunction
 ZdFunction (const char *szFuncName=NULL)
 
virtual ~ZdFunction ()
 
virtual bool compatibleType (const char *szType) const
 
virtual void arg (std::vector< double > &vArg)
 
virtual void func (std::vector< double > &vFunc, double fNull=0.0)
 
virtual bool isNullAll ()
 
virtual bool isNullFunc (int i)
 
virtual void getArgBounds (double b[2])
 
virtual double minArg ()
 
virtual double maxArg ()
 
virtual void getFuncBounds (double b[2])
 
double minFunc ()
 
virtual double maxFunc ()
 
virtual int argIndex (double a)
 
virtual double funcInterp (double a)
 
virtual void makeNullFunc (int i)
 
virtual void makeNullAll ()
 
 ZdFunction (const char *szFuncName=NULL)
 
virtual ~ZdFunction ()
 
virtual bool compatibleType (const char *szType) const
 
virtual void arg (std::vector< double > &vArg)
 
virtual void func (std::vector< double > &vFunc, double fNull=0.0)
 
virtual bool isNullAll ()
 
virtual bool isNullFunc (int i)
 
virtual void getArgBounds (double b[2])
 
virtual double minArg ()
 
virtual double maxArg ()
 
virtual void getFuncBounds (double b[2])
 
double minFunc ()
 
virtual double maxFunc ()
 
virtual int argIndex (double a)
 
virtual double funcInterp (double a)
 
virtual void makeNullFunc (int i)
 
virtual void makeNullAll ()
 
- 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
 

Additional Inherited Members

- Protected Attributes inherited from ZdDocument
ZqbViewVector m_Views
 
- Protected Attributes inherited from ZqbName
char * m_szName
 
char * m_szRoot
 

Detailed Description

template<class T>
class ZdFVector< T >

Storage class template which implements function as a vector of arbitrary number-like items which can be casted to double numbers.

The template parameter T should have casting to double. Any built-in numeric types match this requirement. For custom class operator double() should be implemented.

Constructor & Destructor Documentation

template<class T >
ZdFVector< T >::ZdFVector ( int  n,
T *  pFunc,
double  fArgStep = 1.0,
double  fArg0 = 0.0 
)
inline

Create function interface to the plain memory vector of function values with uniform step.

template<class T >
ZdFVector< T >::ZdFVector ( int  n,
T *  pArg,
T *  pFunc 
)
inline

Create function interface to pair of two plain memory vectors of numeric objects.

template<class T >
ZdFVector< T >::ZdFVector ( int  n,
const T *  pArg,
const T *  pFunc 
)
inline

Create function interface to pair of two plain memory constant vectors of numeric objects.

template<class T >
ZdFVector< T >::ZdFVector ( std::vector< T > *  pvArg,
std::vector< T > *  pvFunc 
)
inline

Create function interface to pair of two STL vectors of numeric objects.

template<class T >
virtual ZdFVector< T >::~ZdFVector ( )
inlinevirtual

Destroy the container. Actually, it does nothing because dynamically allocated memory is not used in the object.

template<class T >
ZdFVector< T >::ZdFVector ( int  n,
T *  pFunc,
double  fArgStep = 1.0,
double  fArg0 = 0.0 
)
inline

Create function interface to the plain memory vector of function values with uniform step.

template<class T >
ZdFVector< T >::ZdFVector ( int  n,
T *  pArg,
T *  pFunc 
)
inline

Create function interface to pair of two plain memory vectors of numeric objects.

template<class T >
ZdFVector< T >::ZdFVector ( int  n,
const T *  pArg,
const T *  pFunc 
)
inline

Create function interface to pair of two plain memory constant vectors of numeric objects.

template<class T >
ZdFVector< T >::ZdFVector ( std::vector< T > *  pvArg,
std::vector< T > *  pvFunc 
)
inline

Create function interface to pair of two STL vectors of numeric objects.

template<class T >
virtual ZdFVector< T >::~ZdFVector ( )
inlinevirtual

Destroy the container. Actually, it does nothing because dynamically allocated memory is not used in the object.

Member Function Documentation

template<class T >
virtual double ZdFVector< T >::arg ( int  i)
inlinevirtual

Get value of argument in given point.

Implements ZdFunction.

template<class T >
virtual double ZdFVector< T >::arg ( int  i)
inlinevirtual

Get value of argument in given point.

Implements ZdFunction.

template<class T >
virtual double ZdFVector< T >::argStep ( )
inlinevirtual

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

Reimplemented from ZdFunction.

template<class T >
virtual double ZdFVector< T >::argStep ( )
inlinevirtual

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

Reimplemented from ZdFunction.

template<class T >
virtual int ZdFVector< T >::count ( )
inlinevirtual

Get number of points in function definition.

Implements ZdFunction.

template<class T >
virtual int ZdFVector< T >::count ( )
inlinevirtual

Get number of points in function definition.

Implements ZdFunction.

template<class T >
virtual double ZdFVector< T >::func ( int  i)
inlinevirtual

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

Implements ZdFunction.

template<class T >
virtual double ZdFVector< T >::func ( int  i)
inlinevirtual

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

Implements ZdFunction.

template<class T >
virtual void ZdFVector< T >::setFunc ( int  i,
double  fNewValue 
)
inlinevirtual

Assign new value to the function.

Reimplemented from ZdFunction.

template<class T >
virtual void ZdFVector< T >::setFunc ( int  i,
double  fNewValue 
)
inlinevirtual

Assign new value to the function.

Reimplemented from ZdFunction.


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