dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::PDELab::CompositeGridFunction< Children > Class Template Reference

composite functions More...

#include <dune/pdelab/common/function.hh>

Inheritance diagram for Dune::PDELab::CompositeGridFunction< Children >:
Inheritance graph

Public Types

typedef CompositeGridFunctionTag ImplementationTag
 
typedef PowerCompositeGridFunctionTraits< typename BaseT::template Child< 0 >::Type::GridViewType > Traits
 
typedef BaseT::template Child< 0 >::Type::GridViewType GridViewType
 record the GridView More...
 

Public Member Functions

 CompositeGridFunction ()
 
 CompositeGridFunction (Children &... children)
 
 CompositeGridFunction (std::shared_ptr< Children >... children)
 
template<typename TT >
void setTime (TT time)
 Set the time in all leaf nodes of this function tree. More...
 
 CompositeGridFunction (T0 &t0, T1 &t1,...)
 Initialize all children. More...
 

Detailed Description

template<typename... Children>
class Dune::PDELab::CompositeGridFunction< Children >

composite functions

Collect instances of possibly different function types Tn within a GridFunctionTree. This implements a GridFunctionTree

Template Parameters
TnThe base types. Tn==EmptyChild means that slot n is unused. Currently, up to 9 slots are supported, making 8 the maximum n.

Member Typedef Documentation

◆ GridViewType

template<typename... Children>
typedef BaseT::template Child<0>::Type::GridViewType Dune::PDELab::CompositeGridFunction< Children >::GridViewType

record the GridView

◆ ImplementationTag

template<typename... Children>
typedef CompositeGridFunctionTag Dune::PDELab::CompositeGridFunction< Children >::ImplementationTag

◆ Traits

template<typename... Children>
typedef PowerCompositeGridFunctionTraits<typename BaseT::template Child<0>::Type::GridViewType> Dune::PDELab::CompositeGridFunction< Children >::Traits

Constructor & Destructor Documentation

◆ CompositeGridFunction() [1/4]

template<typename... Children>
Dune::PDELab::CompositeGridFunction< Children >::CompositeGridFunction ( )
inline

◆ CompositeGridFunction() [2/4]

template<typename... Children>
Dune::PDELab::CompositeGridFunction< Children >::CompositeGridFunction ( Children &...  children)
inline

◆ CompositeGridFunction() [3/4]

template<typename... Children>
Dune::PDELab::CompositeGridFunction< Children >::CompositeGridFunction ( std::shared_ptr< Children >...  children)
inline

◆ CompositeGridFunction() [4/4]

template<typename... Children>
Dune::PDELab::CompositeGridFunction< Children >::CompositeGridFunction ( T0 &  t0,
T1 &  t1,
  ... 
)
inline

Initialize all children.

Parameters
t0The initializer for the first child.
t1The initializer for the second child.
...more initializers

The actual number of arguments for this constructor corresponds to the number of slots used in the template parameter list of the class.

Member Function Documentation

◆ setTime()

template<typename... Children>
template<typename TT >
void Dune::PDELab::CompositeGridFunction< Children >::setTime ( TT  time)
inline

Set the time in all leaf nodes of this function tree.


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