trajectory_collection
Public Member Functions | List of all members
TrajColl::Constant< T > Class Template Reference

Constant function. More...

#include <Func.h>

Inheritance diagram for TrajColl::Constant< T >:
Inheritance graph
[legend]
Collaboration diagram for TrajColl::Constant< T >:
Collaboration graph
[legend]

Public Member Functions

 Constant (const T &value)
 Constructor. More...
 
virtual T operator() (double t=0.0) const override
 Evaluate function value. More...
 
- Public Member Functions inherited from TrajColl::Polynomial< T, 0 >
 Polynomial (const std::array< T, Order+1 > &coeff, double t0=0.0)
 Constructor. More...
 
int order () const
 Get polynomial order. More...
 
virtual T derivative (double t, int derivativeOrder=1) const override
 Evaluate function derivative value. More...
 
- Public Member Functions inherited from TrajColl::Func< T >
 Func ()
 Constructor. More...
 
virtual double domainLowerLimit () const
 Get lower limit of domain. More...
 
virtual double domainUpperLimit () const
 Get upper limit of domain. More...
 

Additional Inherited Members

- Protected Attributes inherited from TrajColl::Polynomial< T, 0 >
std::array< T, Order+1 > coeff_
 Coefficients from low order (i.e., constant term) to high order. More...
 
double t0_
 Offset of function arugment. More...
 

Detailed Description

template<class T>
class TrajColl::Constant< T >

Constant function.

Template Parameters
Tfunction value type

Definition at line 233 of file Func.h.

Constructor & Destructor Documentation

◆ Constant()

template<class T >
TrajColl::Constant< T >::Constant ( const T &  value)
inline

Constructor.

Parameters
valueconstant value

Definition at line 239 of file Func.h.

Member Function Documentation

◆ operator()()

template<class T >
virtual T TrajColl::Constant< T >::operator() ( double  t = 0.0) const
inlineoverridevirtual

Evaluate function value.

Parameters
tarugment of function (which does not affect the return value)

Reimplemented from TrajColl::Polynomial< T, 0 >.

Definition at line 244 of file Func.h.


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