|
limes 3.1.0
Composable Calculus Expressions for C++20
|
#include <conditional.hpp>
Public Types | |
| using | value_type = typename Then::value_type |
| using | condition_type = Cond |
| using | then_type = Then |
| using | else_type = Else |
Public Member Functions | |
| constexpr | Conditional (Cond c, Then t, Else e) noexcept |
| constexpr value_type | eval (std::span< value_type const > args) const |
| constexpr value_type | evaluate (std::span< value_type const > args) const |
| template<std::size_t Dim> | |
| constexpr auto | derivative () const |
| std::string | to_string () const |
Public Attributes | |
| Cond | condition |
| Then | then_branch |
| Else | else_branch |
Static Public Attributes | |
| static constexpr std::size_t | arity_v |
Definition at line 14 of file conditional.hpp.
| using limes::expr::Conditional< Cond, Then, Else >::condition_type = Cond |
Definition at line 16 of file conditional.hpp.
| using limes::expr::Conditional< Cond, Then, Else >::else_type = Else |
Definition at line 18 of file conditional.hpp.
| using limes::expr::Conditional< Cond, Then, Else >::then_type = Then |
Definition at line 17 of file conditional.hpp.
| using limes::expr::Conditional< Cond, Then, Else >::value_type = typename Then::value_type |
Definition at line 15 of file conditional.hpp.
|
inlineconstexprnoexcept |
Definition at line 27 of file conditional.hpp.
|
inlineconstexpr |
Definition at line 45 of file conditional.hpp.
References limes::expr::Conditional< Cond, Then, Else >::condition, limes::expr::Conditional< Cond, Then, Else >::else_branch, and limes::expr::Conditional< Cond, Then, Else >::then_branch.
|
inlineconstexpr |
Definition at line 30 of file conditional.hpp.
References limes::expr::Conditional< Cond, Then, Else >::condition, limes::expr::Conditional< Cond, Then, Else >::else_branch, and limes::expr::Conditional< Cond, Then, Else >::then_branch.
Referenced by limes::expr::Conditional< Cond, Then, Else >::evaluate().
|
inlineconstexpr |
Definition at line 39 of file conditional.hpp.
References limes::expr::Conditional< Cond, Then, Else >::eval().
|
inline |
Definition at line 51 of file conditional.hpp.
References limes::expr::Conditional< Cond, Then, Else >::condition, limes::expr::Conditional< Cond, Then, Else >::else_branch, and limes::expr::Conditional< Cond, Then, Else >::then_branch.
|
staticconstexpr |
Definition at line 20 of file conditional.hpp.
| Cond limes::expr::Conditional< Cond, Then, Else >::condition |
Definition at line 23 of file conditional.hpp.
Referenced by limes::expr::Conditional< Cond, Then, Else >::derivative(), limes::expr::Conditional< Cond, Then, Else >::eval(), and limes::expr::Conditional< Cond, Then, Else >::to_string().
| Else limes::expr::Conditional< Cond, Then, Else >::else_branch |
Definition at line 25 of file conditional.hpp.
Referenced by limes::expr::Conditional< Cond, Then, Else >::derivative(), limes::expr::Conditional< Cond, Then, Else >::eval(), and limes::expr::Conditional< Cond, Then, Else >::to_string().
| Then limes::expr::Conditional< Cond, Then, Else >::then_branch |
Definition at line 24 of file conditional.hpp.
Referenced by limes::expr::Conditional< Cond, Then, Else >::derivative(), limes::expr::Conditional< Cond, Then, Else >::eval(), and limes::expr::Conditional< Cond, Then, Else >::to_string().