MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::DifferentiableFunction1< Ret > Class Template Reference

template class for differentiable functions with one scalar parameter More...

#include <function.h>

Inheritance diagram for MBSim::DifferentiableFunction1< Ret >:
MBSim::Function1< Ret, double >

List of all members.

Public Member Functions

 DifferentiableFunction1 ()
 constructor
virtual ~DifferentiableFunction1 ()
 destructor
virtual Ret operator() (const double &x, const void *=NULL)
const Function1< Ret, double > & getDerivative (int degree) const
Function1< Ret, double > & getDerivative (int degree)
void addDerivative (Function1< Ret, double > *diff)
void setDerivative (Function1< Ret, double > *diff, size_t degree)
void setOrderOfDerivative (int i)
virtual void initializeUsingXML (TiXmlElement *element)
 initialize function with XML code
- Public Member Functions inherited from MBSim::Function1< Ret, double >
virtual ~Function1 ()
 destructor

Protected Attributes

std::vector< Function1< Ret,
double > * > 
derivatives
 vector of derivatives
int order

Detailed Description

template<class Ret>
class MBSim::DifferentiableFunction1< Ret >

template class for differentiable functions with one scalar parameter

Author:
Thorsten Schindler
Date:
2009-08-31 some comments (Thorsten Schindler)
2010-03-10 small correction: setDerivative(...,int) -> setDerivative(...,size_t) (Roland Zander)

Member Function Documentation

template<class Ret>
void MBSim::DifferentiableFunction1< Ret >::addDerivative ( Function1< Ret, double > *  diff)
inline
Parameters:
highestderivative to add
template<class Ret>
const Function1<Ret,double>& MBSim::DifferentiableFunction1< Ret >::getDerivative ( int  degree) const
inline
Returns:
derivative
Parameters:
degreeof derivative
template<class Ret>
Function1<Ret,double>& MBSim::DifferentiableFunction1< Ret >::getDerivative ( int  degree)
inline
Returns:
derivative
Parameters:
degreeof derivative
template<class Ret>
virtual void MBSim::DifferentiableFunction1< Ret >::initializeUsingXML ( TiXmlElement *  element)
inlinevirtual

initialize function with XML code

Parameters:
XMLelement

Reimplemented from MBSim::Function1< Ret, double >.

Reimplemented in MBSim::Polynom1_SS, MBSim::PositiveSinusFunction1_VS, MBSim::SinusFunction1_VS, MBSim::PPolynom, and MBSim::QuadraticFunction1_VS.

template<class Ret>
virtual Ret MBSim::DifferentiableFunction1< Ret >::operator() ( const double &  x,
const void *  = NULL 
)
inlinevirtual
Returns:
return value of function
Parameters:
argumentof function
optionalparameter class

Implements MBSim::Function1< Ret, double >.

template<class Ret>
void MBSim::DifferentiableFunction1< Ret >::setDerivative ( Function1< Ret, double > *  diff,
size_t  degree 
)
inline
Parameters:
derivativeto add
degreeof the derivative
template<class Ret>
void MBSim::DifferentiableFunction1< Ret >::setOrderOfDerivative ( int  i)
inline
Parameters:
orderOfDerivative

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