dune-functions 2.9.0
localderivativetraits.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
4#define DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
5
6
8
9
10namespace Dune {
11namespace Functions {
12
13
26template<class EntitySet, template<class> class DerivativeTraits=DefaultDerivativeTraits>
28{
29 using LocalDomain = typename EntitySet::LocalCoordinate;
30 using Domain = typename EntitySet::GlobalCoordinate;
31
32 template<class Signature>
33 struct Traits
34 {
36 };
37
38 template<class R>
40 {
41 using Range = typename DerivativeTraits<R(Domain)>::Range;
42 };
43};
44
45
46}} // namespace Dune::Functions
47
48#endif // DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
Definition: polynomial.hh:10
Dummy range class to be used if no proper type is available.
Definition: defaultderivativetraits.hh:23
Derivative traits for local functions.
Definition: localderivativetraits.hh:28
typename EntitySet::GlobalCoordinate Domain
Definition: localderivativetraits.hh:30
typename EntitySet::LocalCoordinate LocalDomain
Definition: localderivativetraits.hh:29
Definition: localderivativetraits.hh:34
InvalidRange Range
Definition: localderivativetraits.hh:35
typename DerivativeTraits< R(Domain)>::Range Range
Definition: localderivativetraits.hh:41