dune-pdelab 2.10-git
Loading...
Searching...
No Matches
Dune::PDELab::PowerLocalFunction< F, k > Class Template Reference

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

Inheritance diagram for Dune::PDELab::PowerLocalFunction< F, k >:
Inheritance graph

Public Types

typedef PowerDifferentiableFunctionLocalViewTag ImplementationTag
 
typedef PowerNodeTag NodeTag
 
typedef T ChildType
 
typedef std::array< std::shared_ptr< T >, k > NodeStorage
 

Public Member Functions

template<typename TT >
void setTime (TT time)
 Set the time in all leaf nodes of this function tree.
 
template<typename Entity >
void bind (const Entity &e)
 
void unbind ()
 
 PowerLocalFunction ()
 Default Constructor.
 
 PowerLocalFunction (F &f)
 Construct a PowerGridFunction with k clones of the function t.
 
template<typename C0 , typename C1 , typename... Children>
 PowerLocalFunction (C0 &&c0, C1 &&c1, Children &&... children)
 Initialize all children with different function objects.
 
 PowerLocalFunction (const std::array< std::shared_ptr< F >, k > &children)
 Transformation Constructor, taking the set of new children.
 
T & child (index_constant< i >={})
 
const T & child (index_constant< i >={}) const
 
T & child (std::size_t i)
 
const T & child (std::size_t i) const
 
ImplementationDefined & child (Indices... indices)
 
const ImplementationDefined & child (Indices... indices)
 
T & child (index_constant< i >={})
 
const T & child (index_constant< i >={}) const
 
T & child (std::size_t i)
 
const T & child (std::size_t i) const
 
ImplementationDefined & child (Indices... indices)
 
const ImplementationDefined & child (Indices... indices)
 
std::shared_ptr< T > childStorage (index_constant< i >={})
 
std::shared_ptr< const T > childStorage (index_constant< i >={}) const
 
std::shared_ptr< T > childStorage (std::size_t i)
 
std::shared_ptr< const T > childStorage (std::size_t i) const
 
std::shared_ptr< T > childStorage (index_constant< i >={})
 
std::shared_ptr< const T > childStorage (index_constant< i >={}) const
 
std::shared_ptr< T > childStorage (std::size_t i)
 
std::shared_ptr< const T > childStorage (std::size_t i) const
 
void setChild (T &t, index_constant< i >={})
 
void setChild (T &&t, index_constant< i >={})
 
void setChild (std::shared_ptr< T > st, index_constant< i >={})
 
void setChild (std::size_t i, T &t)
 
void setChild (std::size_t i, T &&t)
 
void setChild (std::size_t i, std::shared_ptr< T > st)
 
void setChild (T &t, index_constant< i >={})
 
void setChild (T &&t, index_constant< i >={})
 
void setChild (std::shared_ptr< T > st, index_constant< i >={})
 
void setChild (std::size_t i, T &t)
 
void setChild (std::size_t i, T &&t)
 
void setChild (std::size_t i, std::shared_ptr< T > st)
 
const NodeStorage & nodeStorage () const
 
const NodeStorage & nodeStorage () const
 

Static Public Member Functions

static constexpr auto degree ()
 

Static Public Attributes

static const bool isLeaf
 
static const bool isPower
 
static const bool isComposite
 

Member Typedef Documentation

◆ ImplementationTag

template<class F , std::size_t k>
typedef PowerDifferentiableFunctionLocalViewTag Dune::PDELab::PowerLocalFunction< F, k >::ImplementationTag

Constructor & Destructor Documentation

◆ PowerLocalFunction() [1/4]

template<class F , std::size_t k>
Dune::PDELab::PowerLocalFunction< F, k >::PowerLocalFunction ( )
inline

Default Constructor.

◆ PowerLocalFunction() [2/4]

template<class F , std::size_t k>
Dune::PDELab::PowerLocalFunction< F, k >::PowerLocalFunction ( F &  f)
inline

Construct a PowerGridFunction with k clones of the function t.

◆ PowerLocalFunction() [3/4]

template<class F , std::size_t k>
template<typename C0 , typename C1 , typename... Children>
Dune::PDELab::PowerLocalFunction< F, k >::PowerLocalFunction ( C0 &&  c0,
C1 &&  c1,
Children &&...  children 
)
inline

Initialize all children with different function objects.

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

◆ PowerLocalFunction() [4/4]

template<class F , std::size_t k>
Dune::PDELab::PowerLocalFunction< F, k >::PowerLocalFunction ( const std::array< std::shared_ptr< F >, k > &  children)
inline

Transformation Constructor, taking the set of new children.

Member Function Documentation

◆ bind()

template<class F , std::size_t k>
template<typename Entity >
void Dune::PDELab::PowerLocalFunction< F, k >::bind ( const Entity &  e)
inline

◆ setTime()

template<class F , std::size_t k>
template<typename TT >
void Dune::PDELab::PowerLocalFunction< F, k >::setTime ( TT  time)
inline

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

◆ unbind()

template<class F , std::size_t k>
void Dune::PDELab::PowerLocalFunction< F, k >::unbind ( )
inline

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