File which contains the implementation of the FixedSizeView class declared in MGIS/Function/FixedSizeView.hxx.
More...
|
| namespace | mgis |
| | the namespace mgis encloses all the MGIS project.
|
File which contains the implementation of the FixedSizeView class declared in MGIS/Function/FixedSizeView.hxx.
- Author
- th202608
- Date
- 07/05/2025
◆ check()
template<FunctionConcept FunctionType, size_type N>
perform consistency checks
- Template Parameters
-
| FunctionType | type of the underlying function |
| N | number of components of the view |
- Parameters
-
| [in] | eh | error handler used to report the errors |
| [in] | v | fixed size view |
- Returns
- true if the number of components of the view is equal to N
◆ getNumberOfComponents()
template<FunctionConcept FunctionType, size_type N>
return the number of components
- Template Parameters
-
| FunctionType | type of the underlying function |
| N | number of components of the view |
- Parameters
-
- Returns
- the number of components of the view, which is N
◆ getSpace()
template<FunctionConcept FunctionType, size_type N>
| decltype(auto) mgis::function::getSpace |
( |
const FixedSizeView< FunctionType, N > & | v | ) |
|
|
nodiscardconstexpr |
return the underlying space
- Template Parameters
-
| FunctionType | type of the underlying function |
| N | number of components of the view |
- Parameters
-
- Returns
- the space on which the view is defined
◆ view() [1/2]
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); }))
| auto mgis::function::view |
( |
FunctionType & | f | ) |
|
|
nodiscardconstexpr |
convert a const function to an immutable fixed size view
- Template Parameters
-
| N | number of components of the view |
| FunctionType | const type of the function |
- Parameters
-
- Returns
- a fixed size view of a view of the function, which only returns constant values
- Note
- this overload applies to constant functions which are neither evaluators nor lightweight views and for which a view can be created
◆ view() [2/2]
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>>)))
| auto mgis::function::view |
( |
FunctionType & | f | ) |
|
|
nodiscardconstexpr |
convert a function to a fixed size view
- Template Parameters
-
| N | number of components of the view |
| FunctionType | type of the function, which may be a qualified type |
- Parameters
-
- Returns
- a fixed size view of the function
- Note
- this overload applies to non-constant functions and to functions which are their own view