AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
ConstantLocalFunction< R(D), LC, T > Class Template Reference

LocalFunction of a Gridfunction returning a constant value. More...

#include <ConstantGridFunction.hpp>

Public Types

enum  { hasDerivative = true }
 This LocalFunction has its own derivativeOf() function.
 
using Domain = D
 The LocalDomain this LocalFunction can be evaluated in.
 
using Range = R
 The range type of the LocalFunction.
 

Public Member Functions

 ConstantLocalFunction (T const &value)
 Constructor. Stores the constant value.
 
void bind (LC const &)
 
void unbind ()
 
Range const & operator() (Domain const &) const
 Return the constant value_.
 
template<class Type >
auto makeDerivative (Type const &) const
 Create a ConstantLocalFunction representing the derivative of a constant function, that ist, the value 0.
 
int order () const
 Return the constant polynomial order 0.
 

Detailed Description

template<class R, class D, class LC, class T>
class AMDiS::ConstantLocalFunction< R(D), LC, T >

LocalFunction of a Gridfunction returning a constant value.


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