1#ifndef DUNE_FEM_FUNCTION_LOCALFUNCTION_MUTABLE_HH
2#define DUNE_FEM_FUNCTION_LOCALFUNCTION_MUTABLE_HH
18 struct DiscreteFunctionTraits;
27 template <
class DiscreteFunction >
29 :
public LocalFunction< typename DiscreteFunctionTraits< DiscreteFunction > :: DiscreteFunctionSpaceType :: BasisFunctionSetType,
30 typename DiscreteFunctionTraits< DiscreteFunction > :: LocalDofVectorType >
Definition: bindguard.hh:11
Traits class for a DiscreteFunction.
Definition: common/discretefunction.hh:61
interface for local functions
Definition: localfunction.hh:77
const LocalDofVectorType & localDofVector() const
return const reference to local Dof Vector
Definition: localfunction.hh:415
void init(const EntityType &entity)
initialize the local function for an entity
Definition: localfunction.hh:437
const EntityType & entity() const
obtain the entity, this local function lives on
Definition: localfunction.hh:302
void unbind()
clears the local function by removing the basisFunctionSet
Definition: localfunction.hh:458
BasisFunctionSetType::EntityType EntityType
type of the entity, the local function lives on is given by the space
Definition: localfunction.hh:95
const BasisFunctionSetType & basisFunctionSet() const
obtain the basis function set for this local function
Definition: localfunction.hh:296
LocalDofVector LocalDofVectorType
type of local Dof Vector
Definition: localfunction.hh:86
Definition: mutable.hh:31
const LocalDofVectorType & localDofVector() const
return const reference to local Dof Vector
Definition: localfunction.hh:415
ThisType & operator=(const ThisType &)=delete
DiscreteFunction DiscreteFunctionType
type of DiscreteFunction
Definition: mutable.hh:38
MutableLocalFunction(const DiscreteFunctionType &discreteFunction)
Constructor creating empty local function from given discrete function.
Definition: mutable.hh:56
MutableLocalFunction(ThisType &&other)
move constructor
Definition: mutable.hh:83
void unbind()
Definition: mutable.hh:103
void bind(const EntityType &entity)
Definition: mutable.hh:98
MutableLocalFunction(DiscreteFunctionType &discreteFunction)
Constructor creating empty local function from given discrete function.
Definition: mutable.hh:50
BaseType::LocalDofVectorType LocalDofVectorType
type of local Dof vector object
Definition: mutable.hh:44
const DiscreteFunctionType & discreteFunction() const
Definition: mutable.hh:105
void init(const EntityType &entity)
Definition: mutable.hh:92
BaseType::BasisFunctionSetType BasisFunctionSetType
type of BasisFunctionSet
Definition: mutable.hh:47
DiscreteFunctionType * discreteFunction_
Definition: mutable.hh:115
DiscreteFunctionType & discreteFunction()
Definition: mutable.hh:109
MutableLocalFunction(const DiscreteFunctionType &dFunction, const EntityType &entity)
Constructor creating local function from given discrete function and entity, not empty.
Definition: mutable.hh:70
MutableLocalFunction(DiscreteFunctionType &discreteFunction, const EntityType &entity)
Constructor creating local function from given discrete function and entity, not empty.
Definition: mutable.hh:62
MutableLocalFunction(const ThisType &other)
copy constructor
Definition: mutable.hh:78
BaseType::EntityType EntityType
type of the entity, the local function lives on is given by the space
Definition: mutable.hh:41
Interface class for basis function sets.
Definition: basisfunctionset/basisfunctionset.hh:31