|
| template<EvaluatorConcept EvaluatorType, EvaluatorModifierConcept EvaluatorModifierType> |
| constexpr auto | mgis::function::operator| (const EvaluatorType &, EvaluatorModifierType) |
| | applies a modifier to an evaluator
|
template<EvaluatorModifierConcept M0, EvaluatorModifierConcept... Ms>
requires (sizeof...(Ms) > 0) |
| constexpr auto | mgis::function::internals::pop_front (const EvaluatorModifiersGroup< M0, Ms... > &m) |
| | removes the first modifier of a group of modifiers
|
template<EvaluatorModifierConcept... Ms>
requires (sizeof...(Ms) > 0) |
| constexpr auto | mgis::function::internals::apply (const EvaluatorModifiersGroup< Ms... > &m, const EvaluatorConcept auto &e) |
| | applies a group of modifiers to an evaluator
|
template<EvaluatorModifierConcept... Ms>
requires (sizeof...(Ms) > 0) |
| | mgis::function::EvaluatorModifiersGroup (Ms...) -> EvaluatorModifiersGroup< Ms... > |
| | deduction guide allowing a group of modifiers to be built from an explicit list of modifiers
|
template<EvaluatorModifierConcept... Ms>
requires (sizeof...(Ms) > 0) |
| | mgis::function::EvaluatorModifiersGroup (std::tuple< Ms... >) -> EvaluatorModifiersGroup< Ms... > |
| | deduction guide allowing a group of modifiers to be built from a tuple of modifiers
|
| template<EvaluatorModifierConcept M0, EvaluatorModifierConcept M1> |
| constexpr auto | mgis::function::operator| (M0 const &m0, M1 const &m1) |
| | groups two modifiers into a new group
|
| template<EvaluatorModifierConcept M0, EvaluatorModifierConcept... M1> |
| constexpr auto | mgis::function::operator| (M0 const &m0, EvaluatorModifiersGroup< M1... > const &m1) |
| | adds a modifier at the beginning of a group of modifiers
|
| template<EvaluatorModifierConcept M0, EvaluatorModifierConcept... M1> |
| constexpr auto | mgis::function::operator| (EvaluatorModifiersGroup< M1... > const &m1, M0 const &m0) |
| | adds a modifier at the end of a group of modifiers
|
| template<EvaluatorModifierConcept... M0, EvaluatorModifierConcept... M1> |
| constexpr auto | mgis::function::operator| (EvaluatorModifiersGroup< M0... > const &m0, EvaluatorModifiersGroup< M1... > const &m1) |
| | merges two groups of modifiers
|
File which defines the concept an evaluator modifier must satisfy, the EvaluatorModifiersGroup class used to combine modifiers and the operator| used to apply them to an evaluator.
- Author
- Thomas Helfer
- Date
- 05/06/2025
- Copyright
- (C) Copyright Thomas Helfer 2018. Use, modification and distribution are subject to one of the following licences:
- GNU Lesser General Public License (LGPL), Version 3.0. (See accompanying file LGPL-3.0.txt)
- CECILL-C, Version 1.0 (See accompanying files CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt).
template<EvaluatorModifierConcept... Ms>
requires (sizeof...(Ms) > 0)
| auto mgis::function::internals::apply |
( |
const EvaluatorModifiersGroup< Ms... > & | m, |
|
|
const EvaluatorConcept auto & | e ) |
|
constexpr |
applies a group of modifiers to an evaluator
The modifiers are applied in order: the first modifier of the group is applied to the evaluator, the second one to the evaluator resulting from this first modification, and so on.
- Template Parameters
-
| Ms | types of the grouped modifiers |
- Parameters
-
| [in] | m | group of modifiers |
| [in] | e | evaluator |
- Returns
- the evaluator resulting from applying all the modifiers to the given evaluator
template<EvaluatorConcept EvaluatorType, EvaluatorModifierConcept EvaluatorModifierType>
| auto mgis::function::operator| |
( |
const EvaluatorType & | e, |
|
|
EvaluatorModifierType | m ) |
|
constexpr |
applies a modifier to an evaluator
implementation of the operator| which applies the modifier to the given evaluator, calling the call operator of the modifier
- Template Parameters
-
| EvaluatorType | evaluator type |
| EvaluatorModifierType | type of the modifier |
- Parameters
-
| [in] | e | evaluator |
| [in] | m | modifier |
- Returns
- the evaluator resulting from applying the modifier to the evaluator