ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::mad::IntegratorChain< T, depth > Class Template Reference

#include <integratorchain.h>

Inheritance diagram for adore::mad::IntegratorChain< T, depth >:
Inheritance graph
Collaboration diagram for adore::mad::IntegratorChain< T, depth >:
Collaboration graph

Public Member Functions

 IntegratorChain (AScalarToN< T, depth > *data, int level)
 
 ~IntegratorChain ()
 
virtual CT f (DT x) const override
 
virtual DT limitHi () const override
 
virtual DT limitLo () const override
 
virtual void invertDirection () override
 
virtual void setLimits (DT lo, DT hi) override
 
virtual ALFunction< DT, CT > * clone () override
 
virtual ALFunction< DT, CT > * create_derivative () override
 
virtual void bound (const DT &xmin, const DT &xmax, CT &ymin, CT &ymax) override
 
- Public Member Functions inherited from adore::mad::ALFunction< T, T >
virtual void f (T *xvec, T *yvec, unsigned int count) const
 
void bound (T &ymin, T &ymax)
 
virtual ~ALFunction ()
 
 ALFunction ()
 
const T operator() (T x) const
 
bool isInDomain (T x)
 
f_bounded (T x)
 
void invalidateCachedBounds ()
 

Private Types

typedef T DT
 
typedef T CT
 

Private Attributes

int m_level
 
AScalarToN< T, depth > * m_data
 

Detailed Description

template<typename T, int depth>
class adore::mad::IntegratorChain< T, depth >

A function which stacks derivatives in the codomain vector. IntegratorChain assumes that a given function represents derivatives in its different dimensions, e.g. m_data->fi(x,1) = d/dx m_data->fi(x,0) m_data->fi(x,2) = d^2/dx^2 m_data->fi(x,0) m_data->fi(x,3) = d^3/dx^3 m_data->fi(x,0) ...

Member Typedef Documentation

◆ CT

template<typename T , int depth>
typedef T adore::mad::IntegratorChain< T, depth >::CT
private

◆ DT

template<typename T , int depth>
typedef T adore::mad::IntegratorChain< T, depth >::DT
private

Constructor & Destructor Documentation

◆ IntegratorChain()

template<typename T , int depth>
adore::mad::IntegratorChain< T, depth >::IntegratorChain ( AScalarToN< T, depth > *  data,
int  level 
)
inline
Here is the caller graph for this function:

◆ ~IntegratorChain()

template<typename T , int depth>
adore::mad::IntegratorChain< T, depth >::~IntegratorChain ( )
inline

Member Function Documentation

◆ bound()

template<typename T , int depth>
virtual void adore::mad::IntegratorChain< T, depth >::bound ( const DT xmin,
const DT xmax,
CT ymin,
CT ymax 
)
inlineoverridevirtual

bound function values in the x-range defined by the hypercube between corner points lower left xmin and upper right xmax

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

◆ clone()

template<typename T , int depth>
virtual ALFunction<DT, CT>* adore::mad::IntegratorChain< T, depth >::clone ( )
inlineoverridevirtual

create a copy of child class object - is used for function operations

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

◆ create_derivative()

template<typename T , int depth>
virtual ALFunction<DT, CT>* adore::mad::IntegratorChain< T, depth >::create_derivative ( )
inlineoverridevirtual

create a new function object, which is the derivative function

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

◆ f()

template<typename T , int depth>
virtual CT adore::mad::IntegratorChain< T, depth >::f ( DT  x) const
inlineoverridevirtual

function evaluation returns y of codomain type CT for a value x of domain type DT

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

◆ invertDirection()

template<typename T , int depth>
virtual void adore::mad::IntegratorChain< T, depth >::invertDirection ( )
inlineoverridevirtual

◆ limitHi()

template<typename T , int depth>
virtual DT adore::mad::IntegratorChain< T, depth >::limitHi ( ) const
inlineoverridevirtual

query upper limit of the domain

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

◆ limitLo()

template<typename T , int depth>
virtual DT adore::mad::IntegratorChain< T, depth >::limitLo ( ) const
inlineoverridevirtual

lower limit of the domain

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

◆ setLimits()

template<typename T , int depth>
virtual void adore::mad::IntegratorChain< T, depth >::setLimits ( DT  lo,
DT  hi 
)
inlineoverridevirtual

reduce or increase the limit of the function, without changing y

Implements adore::mad::ALFunction< T, T >.

Here is the call graph for this function:

Member Data Documentation

◆ m_data

template<typename T , int depth>
AScalarToN<T, depth>* adore::mad::IntegratorChain< T, depth >::m_data
private

◆ m_level

template<typename T , int depth>
int adore::mad::IntegratorChain< T, depth >::m_level
private

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