Tatooine
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
tatooine::time_differentiated_field< InternalField > Struct Template Reference

#include <differentiated_field.h>

Inheritance diagram for tatooine::time_differentiated_field< InternalField >:
[legend]
Collaboration diagram for tatooine::time_differentiated_field< InternalField >:
[legend]

Public Types

using this_type = time_differentiated_field< InternalField >
 
using parent_type = field< this_type, typename std::decay_t< InternalField >::real_type, std::decay_t< InternalField >::num_dimensions(), typename std::decay_t< InternalField >::tensor_type >
 
using vec_type = vec< real_type, num_dimensions()>
 
- Public Types inherited from tatooine::field< time_differentiated_field< InternalField >, std::decay_t< InternalField >::real_type, std::decay_t< InternalField >::num_dimensions(), std::decay_t< InternalField >::tensor_type >
using this_type = field< time_differentiated_field< InternalField >, std::decay_t< InternalField >::real_type, NumDimensions, std::decay_t< InternalField >::tensor_type >
 
using parent_type = polymorphic::field< std::decay_t< InternalField >::real_type, NumDimensions, std::decay_t< InternalField >::tensor_type >
 
using pos_type = vec< real_type, NumDimensions >
 
using real_type = std::decay_t< InternalField >::real_type
 
using tensor_type = std::decay_t< InternalField >::tensor_type
 
- Public Types inherited from tatooine::polymorphic::field< Real, NumDimensions, Tensor >
using real_type = Real
 
using tensor_type = Tensor
 
using this_type = field< real_type, NumDimensions, Tensor >
 
using pos_type = vec< real_type, NumDimensions >
 

Public Member Functions

template<typename Field_ , arithmetic Eps>
 time_differentiated_field (Field_ &&f, Eps const eps)
 
constexpr auto evaluate (pos_type const &x, real_type const t) const -> tensor_type
 
auto set_eps (real_type eps)
 
auto eps () -> auto &
 
auto eps () const -> auto const &
 
auto internal_field () const -> auto const &
 
- Public Member Functions inherited from tatooine::field< time_differentiated_field< InternalField >, std::decay_t< InternalField >::real_type, std::decay_t< InternalField >::num_dimensions(), std::decay_t< InternalField >::tensor_type >
 field ()=default
 
 field (field const &)=default
 
 field (field &&) noexcept=default
 
auto operator= (field const &) -> field &=default
 
auto operator= (field &&) noexcept -> field &=default
 
virtual ~field ()=default
 
auto as_derived () -> auto &
 
auto as_derived () const -> auto const &
 
auto evaluate (pos_type const &x, real_type const t) const -> tensor_type override
 
- Public Member Functions inherited from tatooine::polymorphic::field< Real, NumDimensions, Tensor >
constexpr field ()=default
 
constexpr field (field const &)=default
 
constexpr field (field &&) noexcept=default
 
constexpr auto operator= (field const &) -> field &=default
 
constexpr auto operator= (field &&) noexcept -> field &=default
 
virtual ~field ()=default
 
virtual constexpr auto evaluate (pos_type const &, real_type const) const -> tensor_type=0
 
constexpr auto evaluate (fixed_size_vec< NumDimensions > auto const &x) const -> tensor_type
 
constexpr auto operator() (fixed_size_vec< NumDimensions > auto const &x, real_type const t) const -> tensor_type
 
constexpr auto operator() (fixed_size_vec< NumDimensions > auto const &x) const -> tensor_type
 
constexpr auto operator() (arithmetic auto const ... xs) const -> tensor_type
 

Static Public Attributes

static constexpr auto holds_field_pointer = is_pointer<InternalField>
 

Private Attributes

InternalField m_internal_field
 
real_type m_eps
 

Additional Inherited Members

- Static Public Member Functions inherited from tatooine::polymorphic::field< Real, NumDimensions, Tensor >
static auto constexpr ood_tensor ()
 
static auto constexpr ood_position ()
 
static constexpr auto is_field ()
 
static constexpr auto is_scalarfield ()
 
static constexpr auto is_vectorfield ()
 
static constexpr auto is_matrixfield ()
 
static constexpr auto num_dimensions () -> std::size_t
 
static constexpr auto num_tensor_components ()
 
static constexpr auto tensor_rank ()
 
static constexpr auto tensor_dimension (std::size_t i)
 

Member Typedef Documentation

◆ parent_type

template<typename InternalField >
using tatooine::time_differentiated_field< InternalField >::parent_type = field<this_type, typename std::decay_t<InternalField>::real_type, std::decay_t<InternalField>::num_dimensions(), typename std::decay_t<InternalField>::tensor_type>

◆ this_type

template<typename InternalField >
using tatooine::time_differentiated_field< InternalField >::this_type = time_differentiated_field<InternalField>

◆ vec_type

template<typename InternalField >
using tatooine::time_differentiated_field< InternalField >::vec_type = vec<real_type, num_dimensions()>

Constructor & Destructor Documentation

◆ time_differentiated_field()

template<typename InternalField >
template<typename Field_ , arithmetic Eps>
tatooine::time_differentiated_field< InternalField >::time_differentiated_field ( Field_ &&  f,
Eps const  eps 
)
inline

Member Function Documentation

◆ eps() [1/2]

template<typename InternalField >
auto tatooine::time_differentiated_field< InternalField >::eps ( ) -> auto&
inline

◆ eps() [2/2]

template<typename InternalField >
auto tatooine::time_differentiated_field< InternalField >::eps ( ) const -> auto const&
inline

◆ evaluate()

template<typename InternalField >
constexpr auto tatooine::time_differentiated_field< InternalField >::evaluate ( pos_type const &  x,
real_type const  t 
) const -> tensor_type
inlineconstexpr

◆ internal_field()

template<typename InternalField >
auto tatooine::time_differentiated_field< InternalField >::internal_field ( ) const -> auto const&
inline

◆ set_eps()

template<typename InternalField >
auto tatooine::time_differentiated_field< InternalField >::set_eps ( real_type  eps)
inline

Member Data Documentation

◆ holds_field_pointer

template<typename InternalField >
constexpr auto tatooine::time_differentiated_field< InternalField >::holds_field_pointer = is_pointer<InternalField>
staticconstexpr

◆ m_eps

template<typename InternalField >
real_type tatooine::time_differentiated_field< InternalField >::m_eps
private

◆ m_internal_field

template<typename InternalField >
InternalField tatooine::time_differentiated_field< InternalField >::m_internal_field
private

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