MGIS
Loading...
Searching...
No Matches
mgis::function::UnaryOperation< CallableType, EvaluatorType > Struct Template Reference

a base class for evaluators modifying a stress tensor More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/UnaryOperation.hxx>

Inheritance diagram for mgis::function::UnaryOperation< CallableType, EvaluatorType >:
mgis::function::EvaluatorModifierBase< UnaryOperation< CallableType, EvaluatorType >, EvaluatorType > mgis::function::internals::UnaryOperationBase< CallableType, EvaluatorType >

Public Member Functions

constexpr UnaryOperation (const CallableType &, const EvaluatorType &)
 constructor
 
constexpr auto apply (const evaluator_result< EvaluatorType > &) const
 apply the modifier
 
- Public Member Functions inherited from mgis::function::EvaluatorModifierBase< UnaryOperation< CallableType, EvaluatorType >, EvaluatorType >
constexpr EvaluatorModifierBase (const EvaluatorType &)
 constructor
 
constexpr EvaluatorModifierBase (const EvaluatorModifierBase &)
 copy constructor
 
constexpr EvaluatorModifierBase (EvaluatorModifierBase &&)
 move constructor
 
constexpr decltype(autogetSpace () const
 return the underlying space
 
constexpr bool check (AbstractErrorHandler &) const
 perform consistency checks
 
constexpr auto operator() (const element_index< Space > &) const
 call operator
 
constexpr auto operator() (const element_workspace< Space > &, const element_index< Space > &) const
 call operator
 
constexpr auto operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) const
 call operator
 
constexpr auto operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) const
 call operator
 

Additional Inherited Members

- Public Types inherited from mgis::function::EvaluatorModifierBase< UnaryOperation< CallableType, EvaluatorType >, EvaluatorType >
using Space = evaluator_space< EvaluatorType >
 a simple alias
 
- Static Public Member Functions inherited from mgis::function::internals::UnaryOperationBase< CallableType, EvaluatorType >
static constexpr size_type getNumberOfComponents () noexcept
 
- Protected Attributes inherited from mgis::function::EvaluatorModifierBase< UnaryOperation< CallableType, EvaluatorType >, EvaluatorType >
EvaluatorType evaluator
 underlying evaluator
 

Detailed Description

template<typename CallableType, EvaluatorConcept EvaluatorType>
requires ((std::is_copy_constructible_v<CallableType>)&&( std::invocable<CallableType, evaluator_result<EvaluatorType>>))
struct mgis::function::UnaryOperation< CallableType, EvaluatorType >

a base class for evaluators modifying a stress tensor

Template Parameters
CallableTypetype of the modifier
EvaluatorTypeevaluator of the stress

Constructor & Destructor Documentation

◆ UnaryOperation()

template<typename CallableType , EvaluatorConcept EvaluatorType>
requires ((std::is_copy_constructible_v<CallableType>)&&( std::invocable<CallableType, evaluator_result<EvaluatorType>>))
constexpr mgis::function::UnaryOperation< CallableType, EvaluatorType >::UnaryOperation ( const CallableType c,
const EvaluatorType &  e 
)
constexpr

constructor

Parameters
[in]ccallable type
[in]emodified evaluator

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