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

#include <alfunction.h>

Inheritance diagram for adore::mad::FunctionCombination_Stack< T, Na, Nb >:
Inheritance graph
Collaboration diagram for adore::mad::FunctionCombination_Stack< T, Na, Nb >:
Collaboration graph

Public Types

typedef adoreMatrix< T, Na+Nb, 1 > CT
 
typedef adoreMatrix< T, Na, 1 > CTa
 
typedef adoreMatrix< T, Nb, 1 > CTb
 
typedef T DT
 

Public Member Functions

 FunctionCombination_Stack (ALFunction< T, CTa > *a, ALFunction< T, CTb > *b)
 
virtual ~FunctionCombination_Stack ()
 
virtual CT f (T x) const override
 
virtual DT limitHi () const override
 
virtual DT limitLo () const 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, adoreMatrix< T, Na+Nb, 1 > >
virtual void f (T *xvec, adoreMatrix< T, Na+Nb, 1 > *yvec, unsigned int count) const
 
void bound (adoreMatrix< T, Na+Nb, 1 > &ymin, adoreMatrix< T, Na+Nb, 1 > &ymax)
 
virtual ~ALFunction ()
 
 ALFunction ()
 
const adoreMatrix< T, Na+Nb, 1 > operator() (T x) const
 
bool isInDomain (T x)
 
adoreMatrix< T, Na+Nb, 1 > f_bounded (T x)
 
void invalidateCachedBounds ()
 

Public Attributes

ALFunction< T, CTa > * a
 
ALFunction< T, CTb > * b
 

Detailed Description

template<typename T, int Na, int Nb>
class adore::mad::FunctionCombination_Stack< T, Na, Nb >

a helper class for combining a T^1->T^Na with a T^1->T^Nb function by stacking

Member Typedef Documentation

◆ CT

template<typename T , int Na, int Nb>
typedef adoreMatrix<T, Na + Nb, 1> adore::mad::FunctionCombination_Stack< T, Na, Nb >::CT

◆ CTa

template<typename T , int Na, int Nb>
typedef adoreMatrix<T, Na, 1> adore::mad::FunctionCombination_Stack< T, Na, Nb >::CTa

◆ CTb

template<typename T , int Na, int Nb>
typedef adoreMatrix<T, Nb, 1> adore::mad::FunctionCombination_Stack< T, Na, Nb >::CTb

◆ DT

template<typename T , int Na, int Nb>
typedef T adore::mad::FunctionCombination_Stack< T, Na, Nb >::DT

Constructor & Destructor Documentation

◆ FunctionCombination_Stack()

template<typename T , int Na, int Nb>
adore::mad::FunctionCombination_Stack< T, Na, Nb >::FunctionCombination_Stack ( ALFunction< T, CTa > *  a,
ALFunction< T, CTb > *  b 
)
inline
Here is the caller graph for this function:

◆ ~FunctionCombination_Stack()

template<typename T , int Na, int Nb>
virtual adore::mad::FunctionCombination_Stack< T, Na, Nb >::~FunctionCombination_Stack ( )
inlinevirtual

Member Function Documentation

◆ bound()

template<typename T , int Na, int Nb>
virtual void adore::mad::FunctionCombination_Stack< T, Na, Nb >::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, adoreMatrix< T, Na+Nb, 1 > >.

Here is the call graph for this function:

◆ clone()

template<typename T , int Na, int Nb>
virtual ALFunction<DT, CT>* adore::mad::FunctionCombination_Stack< T, Na, Nb >::clone ( )
inlineoverridevirtual

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

Implements adore::mad::ALFunction< T, adoreMatrix< T, Na+Nb, 1 > >.

Here is the call graph for this function:

◆ create_derivative()

template<typename T , int Na, int Nb>
virtual ALFunction<DT, CT>* adore::mad::FunctionCombination_Stack< T, Na, Nb >::create_derivative ( )
inlineoverridevirtual

create a new function object, which is the derivative function

Implements adore::mad::ALFunction< T, adoreMatrix< T, Na+Nb, 1 > >.

Here is the call graph for this function:

◆ f()

template<typename T , int Na, int Nb>
virtual CT adore::mad::FunctionCombination_Stack< T, Na, Nb >::f ( x) const
inlineoverridevirtual

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

Implements adore::mad::ALFunction< T, adoreMatrix< T, Na+Nb, 1 > >.

Here is the call graph for this function:

◆ limitHi()

template<typename T , int Na, int Nb>
virtual DT adore::mad::FunctionCombination_Stack< T, Na, Nb >::limitHi ( ) const
inlineoverridevirtual

query upper limit of the domain

Implements adore::mad::ALFunction< T, adoreMatrix< T, Na+Nb, 1 > >.

Here is the call graph for this function:

◆ limitLo()

template<typename T , int Na, int Nb>
virtual DT adore::mad::FunctionCombination_Stack< T, Na, Nb >::limitLo ( ) const
inlineoverridevirtual

lower limit of the domain

Implements adore::mad::ALFunction< T, adoreMatrix< T, Na+Nb, 1 > >.

Here is the call graph for this function:

◆ setLimits()

template<typename T , int Na, int Nb>
virtual void adore::mad::FunctionCombination_Stack< T, Na, Nb >::setLimits ( DT  lo,
DT  hi 
)
inlineoverridevirtual

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

Implements adore::mad::ALFunction< T, adoreMatrix< T, Na+Nb, 1 > >.

Here is the call graph for this function:

Member Data Documentation

◆ a

template<typename T , int Na, int Nb>
ALFunction<T, CTa>* adore::mad::FunctionCombination_Stack< T, Na, Nb >::a

◆ b

template<typename T , int Na, int Nb>
ALFunction<T, CTb>* adore::mad::FunctionCombination_Stack< T, Na, Nb >::b

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