|
MGIS 3.1.0
|
class describing a uniform evaluator, i.e. an evaluator which returns the same value at each integration point of a space More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/UniformEvaluator.hxx>
Public Types | |
| using | ValueType |
| type of the value passed to construct the uniform evaluator, which is a scalar value if N is equal to one, a constant std::span of N values otherwise | |
Public Member Functions | |
| constexpr | UniformEvaluator (const Space &, const ValueType &) MGIS_NOEXCEPT |
| constructor | |
| constexpr | UniformEvaluator (UniformEvaluator &&) noexcept |
| move constructor | |
| constexpr | UniformEvaluator (const UniformEvaluator &) MGIS_NOEXCEPT |
| copy constructor | |
| constexpr const Space & | getSpace () const MGIS_NOEXCEPT |
| constexpr ValueType | operator() (const element_index< Space > &) const MGIS_NOEXCEPT |
| call operator, which returns the uniform value associated with an integration point | |
| constexpr ValueType | operator() (const element_workspace< Space > &, const element_index< Space > &) const MGIS_NOEXCEPT |
| call operator, which returns the uniform value associated with an integration point | |
| constexpr ValueType | operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) const MGIS_NOEXCEPT |
| call operator, which returns the uniform value associated with an integration point | |
| constexpr ValueType | operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) const MGIS_NOEXCEPT |
| call operator, which returns the uniform value associated with an integration point | |
| constexpr | ~UniformEvaluator () noexcept |
| destructor | |
Static Protected Member Functions | |
| static constexpr real | buildValues (const real) MGIS_NOEXCEPT |
| a uniform evaluator has at least one component | |
| static constexpr std::array< real, N > | buildValues (const std::span< const real > &) MGIS_NOEXCEPT |
| builds the array stored by the evaluator from the values given to the constructor | |
Protected Attributes | |
| const Space | space |
| underlying discretization space | |
| const std::conditional_t< N==1, real, std::array< real, N > > | values |
| uniform value, a scalar if N is equal to one, an array otherwise | |
class describing a uniform evaluator, i.e. an evaluator which returns the same value at each integration point of a space
The value is copied when the evaluator is built, so the object it is built from may be destroyed afterwards.
| Space | type of the space on which the evaluator is defined |
| N | number of components of the returned values, which must be greater than zero |
| using mgis::function::UniformEvaluator< Space, N >::ValueType |
type of the value passed to construct the uniform evaluator, which is a scalar value if N is equal to one, a constant std::span of N values otherwise
|
constexpr |
constructor
| [in] | s | space on which the evaluator is defined |
| [in] | v | uniform value, which is copied in the evaluator |
|
staticnodiscardconstexprprotected |
a uniform evaluator has at least one component
builds the value stored by the evaluator from the scalar value given to the constructor
| [in] | v | scalar value |
|
staticnodiscardconstexprprotected |
builds the array stored by the evaluator from the values given to the constructor
| [in] | v | values, which must contain at least N values |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
call operator, which returns the uniform value associated with an integration point
| [in] | e | index of the cell, which is unused since the value is the same everywhere |
| [in] | i | index of the quadrature point, which is unused since the value is the same everywhere |
|
nodiscardconstexpr |
call operator, which returns the uniform value associated with an integration point
| [in] | wk | workspace associated with the cell, which is unused |
| [in] | e | index of the cell, which is unused since the value is the same everywhere |
| [in] | i | index of the quadrature point, which is unused since the value is the same everywhere |
|
nodiscardconstexpr |
call operator, which returns the uniform value associated with an integration point
| [in] | i | index of the integration point, which is unused since the value is the same everywhere |
|
nodiscardconstexpr |
call operator, which returns the uniform value associated with an integration point
| [in] | wk | workspace associated with the element, which is unused |
| [in] | i | index of the integration point, which is unused since the value is the same everywhere |