dune-functions  2.5-dev
Classes | Public Types | Public Member Functions | Friends | List of all members
Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction Class Reference

#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>

Public Types

using GlobalFunction = DiscreteGlobalBasisFunction
 
using Domain = LocalDomain
 
using Range = GlobalFunction::Range
 
using Element = GlobalFunction::Element
 

Public Member Functions

 LocalFunction (const DiscreteGlobalBasisFunction &globalFunction)
 
 LocalFunction (const LocalFunction &other)
 
LocalFunction operator= (const LocalFunction &other)
 
void bind (const Element &element)
 Bind LocalFunction to grid element. More...
 
void unbind ()
 
Range operator() (const Domain &x) const
 Evaluate LocalFunction at bound element. More...
 
const ElementlocalContext () const
 

Friends

Traits::LocalFunctionTraits::DerivativeInterface derivative (const LocalFunction &t)
 

Member Typedef Documentation

§ Domain

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
using Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::Domain = LocalDomain

§ Element

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
using Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::Element = GlobalFunction::Element

§ GlobalFunction

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
using Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::GlobalFunction = DiscreteGlobalBasisFunction

§ Range

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
using Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::Range = GlobalFunction::Range

Constructor & Destructor Documentation

§ LocalFunction() [1/2]

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::LocalFunction ( const DiscreteGlobalBasisFunction globalFunction)
inline

§ LocalFunction() [2/2]

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::LocalFunction ( const LocalFunction other)
inline

Member Function Documentation

§ bind()

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
void Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::bind ( const Element element)
inline

Bind LocalFunction to grid element.

You must call this method before evaluate() and after changes to the coefficient vector.

§ localContext()

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
const Element& Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::localContext ( ) const
inline

§ operator()()

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
Range Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::operator() ( const Domain x) const
inline

Evaluate LocalFunction at bound element.

The result of this method is undefined if you did not call bind() beforehand or changed the coefficient vector after the last call to bind(). In the latter case you have to call bind() again in order to make operator() usable.

§ operator=()

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
LocalFunction Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::operator= ( const LocalFunction other)
inline

§ unbind()

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
void Dune::Functions::DiscreteGlobalBasisFunction< B, TP, V, NTRE, R >::LocalFunction::unbind ( )
inline

Friends And Related Function Documentation

§ derivative

template<typename B, typename TP, typename V, typename NTRE = DefaultNodeToRangeMap<typename std::decay<decltype(std::declval<B>().localView().tree().child(std::declval<TP>()))>::type>, typename R = typename V::value_type>
Traits::LocalFunctionTraits::DerivativeInterface derivative ( const LocalFunction t)
friend

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