3 #ifndef DUNE_FUNCTION_HH
4 #define DUNE_FUNCTION_HH
26 template <
class Domain,
class Range>
29 typedef typename std::remove_cv<typename std::remove_reference< Domain >::type >::type RawDomainType;
30 typedef typename std::remove_cv<typename std::remove_reference< Range >::type >::type RawRangeType;
65 template <
class DomainType,
class RangeType>
67 public Function<const DomainType&, RangeType&>
79 virtual void evaluate(
const typename Traits::DomainType& x,
typename Traits::RangeType& y)
const = 0;
RawDomainType DomainType
Definition: function.hh:43
virtual ~VirtualFunction()
Definition: function.hh:72
Virtual base class template for function classes.
Definition: function.hh:66
RawRangeType RangeType
Definition: function.hh:44
virtual void evaluate(const typename Traits::DomainType &x, typename Traits::RangeType &y) const =0
Function evaluation.
Base class template for function classes.
Definition: function.hh:27
void evaluate(const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Function evaluation.
RawRangeType RangeType
Raw type of input variable with removed reference and constness.
Definition: function.hh:35
Function< const DomainType &, RangeType & >::Traits Traits
Definition: function.hh:70
Traits class containing raw types.
Definition: function.hh:41
Traits for type conversions and type information.
RawDomainType DomainType
Raw type of output variable with removed reference and constness.
Definition: function.hh:38