|
MGIS 3.1.0
|
File which defines the FixedSizeView class, a view returning the values of a function with a fixed number of components as a fixed size span or as a scalar. More...
#include "MGIS/Contract.hxx"#include "MGIS/Function/SpaceConcept.hxx"#include "MGIS/Function/Evaluator.hxx"#include "MGIS/Function/Function.hxx"#include "MGIS/Function/FixedSizeView.ixx"Classes | |
| struct | mgis::function::FixedSizeView< FunctionType, N > |
| a modifier returning the values of a function view as a fixed size span or a scalar More... | |
| struct | mgis::function::LightweightViewTraits< FixedSizeView< FunctionType, N > > |
| specialisation stating that a FixedSizeView is a lightweight view, i.e. that a copy of the view is cheap and can be used to evaluate the function More... | |
Namespaces | |
| namespace | mgis |
| the namespace mgis encloses all the MGIS project. | |
Functions | |
| template<size_type N, typename FunctionType> requires ( (N > 0) && (N != dynamic_extent) && // (FunctionConcept<std::decay_t<FunctionType>>)&& // ((!std::is_const_v<FunctionType>) || (LightweightViewConcept<std::decay_t<FunctionType>>))) | |
| constexpr auto | mgis::function::view (FunctionType &) |
| convert a function to a fixed size view | |
| template<size_type N, typename FunctionType> requires ( (N > 0) && (N != dynamic_extent) && // (FunctionConcept<std::decay_t<FunctionType>>)&& // (!EvaluatorConcept<std::decay_t<FunctionType>>)&& // (!LightweightViewConcept<std::decay_t<FunctionType>>)&& // (std::is_const_v<FunctionType>)&& // (requires(FunctionType & rf) { view(rf); })) | |
| constexpr auto | mgis::function::view (FunctionType &) |
| convert a const function to an immutable fixed size view | |
| template<FunctionConcept FunctionType, size_type N> | |
| constexpr decltype(auto) | mgis::function::getSpace (const FixedSizeView< FunctionType, N > &) |
| return the underlying space | |
| template<FunctionConcept FunctionType, size_type N> | |
| constexpr bool | mgis::function::check (AbstractErrorHandler &, const FixedSizeView< FunctionType, N > &) |
| perform consistency checks | |
| template<FunctionConcept FunctionType, size_type N> | |
| constexpr size_type | mgis::function::getNumberOfComponents (const FixedSizeView< FunctionType, N > &) MGIS_NOEXCEPT |
| return the number of components | |
File which defines the FixedSizeView class, a view returning the values of a function with a fixed number of components as a fixed size span or as a scalar.
|
nodiscardconstexpr |
perform consistency checks
| FunctionType | type of the underlying function |
| N | number of components of the view |
| [in] | eh | error handler used to report the errors |
| [in] | v | fixed size view |
|
nodiscardconstexpr |
return the number of components
| FunctionType | type of the underlying function |
| N | number of components of the view |
| [in] | v | fixed size view |
|
nodiscardconstexpr |
return the underlying space
| FunctionType | type of the underlying function |
| N | number of components of the view |
| [in] | v | fixed size view |
|
nodiscardconstexpr |
convert a const function to an immutable fixed size view
| N | number of components of the view |
| FunctionType | const type of the function |
| [in] | f | function |
|
nodiscardconstexpr |
convert a function to a fixed size view
| N | number of components of the view |
| FunctionType | type of the function, which may be a qualified type |
| [in] | f | function |