dune-pdelab  2.4.1
Public Types | Public Member Functions | List of all members
Dune::PDELab::PowerGridFunction< T, k > Class Template Reference

product of identical functions More...

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

Inheritance diagram for Dune::PDELab::PowerGridFunction< T, k >:
Inheritance graph

Public Types

typedef PowerCompositeGridFunctionTraits< typename T::GridViewType > Traits
 
typedef PowerGridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 record the GridView More...
 

Public Member Functions

template<typename TT >
void setTime (TT time)
 Set the time in all leaf nodes of this function tree. More...
 
 PowerGridFunction ()
 
 PowerGridFunction (T &t)
 Construct a PowerGridFunction with k clones of the function t. More...
 
 PowerGridFunction (T &t0, T &t1,...)
 Initialize all children with different function objects. More...
 

Detailed Description

template<class T, std::size_t k>
class Dune::PDELab::PowerGridFunction< T, k >

product of identical functions

This collects k instances of T in a GridFunctionTree.

Template Parameters
TThe type of the children of this node in the tree.
kThe number of children this node has.

Member Typedef Documentation

template<class T , std::size_t k>
typedef T::GridViewType Dune::PDELab::PowerGridFunction< T, k >::GridViewType

record the GridView

template<class T , std::size_t k>
typedef PowerGridFunctionTag Dune::PDELab::PowerGridFunction< T, k >::ImplementationTag
template<class T , std::size_t k>
typedef PowerCompositeGridFunctionTraits<typename T::GridViewType> Dune::PDELab::PowerGridFunction< T, k >::Traits

Constructor & Destructor Documentation

template<class T , std::size_t k>
Dune::PDELab::PowerGridFunction< T, k >::PowerGridFunction ( )
inline
template<class T , std::size_t k>
Dune::PDELab::PowerGridFunction< T, k >::PowerGridFunction ( T &  t)
inline

Construct a PowerGridFunction with k clones of the function t.

template<class T , std::size_t k>
Dune::PDELab::PowerGridFunction< T, k >::PowerGridFunction ( T &  t0,
T &  t1,
  ... 
)
inline

Initialize all children with different function objects.

This constructor is only available in the non-specialized version

Parameters
tPoints to an array of pointers to function objects of type T. The function pointed to by the first pointer will be used to initialize the first child, the second pointer for the second child and so on.Initialize all children with different function objects

Currently there exist specializations for 2 <= k <= 9. Each specialization has a constructor which takes the initializers for its children as arguments.

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

Member Function Documentation

template<class T , std::size_t k>
template<typename TT >
void Dune::PDELab::PowerGridFunction< T, k >::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: