Flow123d  DF_patch_fe_data_tables-ab62eed
Public Member Functions | List of all members
Mixed< T, lower_dim > Class Template Reference

#include <mixed.hh>

Inheritance diagram for Mixed< T, lower_dim >:
Inheritance graph
[legend]
Collaboration diagram for Mixed< T, lower_dim >:
Collaboration graph
[legend]

Public Member Functions

template<template< IntDim... > class TT>
 Mixed (const Mixed< TT > &other)
 
 Mixed (const T< 0 > &p0, const T< 1 > &p1, const T< 2 > &p2, const T< 3 > &p3)
 
 Mixed (T< 0 > &&p0, T< 1 > &&p1, T< 2 > &&p2, T< 3 > &&p3)
 
template<typename... Args>
 Mixed (Args... args)
 
template<IntDim i_dim>
T< i_dim > & operator[] (Dim< i_dim >)
 
template<IntDim i_dim>
const T< i_dim > & operator[] (Dim< i_dim >) const
 
template<template< IntDim... > class TParent, typename std::enable_if< std::is_convertible< TParent< 0 >, T< 0 >>::value, T< 0 > >::type >
 operator Mixed< TParent > () const
 

Detailed Description

template<template< IntDim ... > class T, int lower_dim = 0>
class Mixed< T, lower_dim >

Definition at line 64 of file mixed.hh.

Constructor & Destructor Documentation

◆ Mixed() [1/4]

template<template< IntDim ... > class T, int lower_dim = 0>
template<template< IntDim... > class TT>
Mixed< T, lower_dim >::Mixed ( const Mixed< TT > &  other)
inline

Template to simplify storing and passing tuples of instances of dimension parametrized templates. Currently instances for dim = 0,1,2,3 are created. We assume spacedim=3. Usage:

fe_order = 10; auto gauss = Mixed<QGauss>(q_order); // template <int dim> class QGauss; auto mapping = MixedSpaceDim<Mapping>(); // template <int dim, int spacedim> class Mapping; ... fe_values = FEValues<dim>(mapping[Dim<dim>{}], gauss[Dim<dim>{}], ...)

or

fe_values = FEValues<dim>(mapping[0_d], gauss[0_d], ...) fe_values = FEValues<dim>(mapping[1_d], gauss[1_d], ...) ...

All parameters of the Mixed<T>(...) constructor are forwarder (by value) to the T(...) constructor for every dimension. Only forwarding by value is supported due to problems with MixedPtr. Can not resolve copy constructor correctly.

Definition at line 89 of file mixed.hh.

◆ Mixed() [2/4]

template<template< IntDim ... > class T, int lower_dim = 0>
Mixed< T, lower_dim >::Mixed ( const T< 0 > &  p0,
const T< 1 > &  p1,
const T< 2 > &  p2,
const T< 3 > &  p3 
)
inline

Definition at line 97 of file mixed.hh.

◆ Mixed() [3/4]

template<template< IntDim ... > class T, int lower_dim = 0>
Mixed< T, lower_dim >::Mixed ( T< 0 > &&  p0,
T< 1 > &&  p1,
T< 2 > &&  p2,
T< 3 > &&  p3 
)
inline

Definition at line 101 of file mixed.hh.

◆ Mixed() [4/4]

template<template< IntDim ... > class T, int lower_dim = 0>
template<typename... Args>
Mixed< T, lower_dim >::Mixed ( Args...  args)
inline

Definition at line 107 of file mixed.hh.

Member Function Documentation

◆ operator Mixed< TParent >()

template<template< IntDim ... > class T, int lower_dim = 0>
template<template< IntDim... > class TParent, typename std::enable_if< std::is_convertible< TParent< 0 >, T< 0 >>::value, T< 0 > >::type >
Mixed< T, lower_dim >::operator Mixed< TParent > ( ) const
inline

Conversion operator for inner type conversions.

Definition at line 135 of file mixed.hh.

◆ operator[]() [1/2]

template<template< IntDim ... > class T, int lower_dim = 0>
template<IntDim i_dim>
T<i_dim>& Mixed< T, lower_dim >::operator[] ( Dim< i_dim >  )
inline

Beautiful index/like access inspired by: https://arne-mertz.de/2017/03/tuple-compile-time-access/

Definition at line 120 of file mixed.hh.

◆ operator[]() [2/2]

template<template< IntDim ... > class T, int lower_dim = 0>
template<IntDim i_dim>
const T<i_dim>& Mixed< T, lower_dim >::operator[] ( Dim< i_dim >  ) const
inline

Definition at line 126 of file mixed.hh.


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