Go to the source code of this file.
Classes | |
| struct | te_fun_traits< ReturnType(*)(Args...)> |
| struct | te_fun_traits< ReturnType(Args...)> |
| struct | te_is_closure< FuncType > |
| struct | te_is_closure< ReturnType(*)(const te_expr *, Args...)> |
| struct | te_is_closure< ReturnType(const te_expr *, Args...)> |
| struct | te_is_closure< te_arg_confun > |
| class | te_string_less |
| class | te_expr |
| A compiled expression. More... | |
| class | te_variable |
| Custom variable or function that can be added to a te_parser. More... | |
| class | te_parser |
| Math formula parser. More... | |
| struct | te_parser::state |
Enumerations | |
| enum | te_variable_flags { TE_DEFAULT = 0 , TE_PURE = (1 << 0) , TE_VARIADIC = (1 << 1) } |
| A variable's flags, effecting how it is evaluated. More... | |
Variables | |
| constexpr int | TINYEXPR_CPP_MAJOR_VERSION = 1 |
| constexpr int | TINYEXPR_CPP_MINOR_VERSION = 2 |
| constexpr int | TINYEXPR_CPP_PATCH_VERSION = 0 |
| constexpr int | TINYEXPR_CPP_TWEAK_VERSION = 0 |
| template<typename FuncType> | |
| constexpr size_t | te_function_arity = te_fun_traits<FuncType>::arity |
| template<typename T> | |
| constexpr bool | te_is_constant_v = std::is_same_v<T, te_type> |
| template<typename T> | |
| constexpr bool | te_is_variable_v = std::is_same_v<T, const te_type*> |
| template<typename T> | |
| constexpr bool | te_is_closure_v = te_is_closure<T>::value |
| template<typename T> | |
| constexpr bool | te_is_string_v = std::is_same_v<T, std::string_view> |
| template<typename T> | |
| constexpr bool | te_is_arg_function_v = std::is_same_v<T, te_arg_fun> |
| template<typename T> | |
| constexpr bool | te_is_arg_closure_v = std::is_same_v<T, te_arg_confun> |
| template<typename T> | |
| constexpr bool | te_is_function_v |
A function argument, either a number or a string literal.
Definition at line 182 of file tinyexpr.h.
| using te_arg_confun = te_type (*)(const te_expr*, std::span<const te_arg>) |
Context version of te_arg_fun (te_variable passes a client's te_expr first).
Definition at line 193 of file tinyexpr.h.
| using te_arg_fun = te_type (*)(std::span<const te_arg>) |
A function taking any number of number-or-string arguments.
Definition at line 189 of file tinyexpr.h.
| using te_confun0 = te_type (*)(const te_expr*) |
Definition at line 152 of file tinyexpr.h.
| using te_confun1 = te_type (*)(const te_expr*, te_type) |
Definition at line 153 of file tinyexpr.h.
| using te_confun10 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 162 of file tinyexpr.h.
| using te_confun11 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 163 of file tinyexpr.h.
| using te_confun12 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 164 of file tinyexpr.h.
| using te_confun13 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 165 of file tinyexpr.h.
| using te_confun14 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 166 of file tinyexpr.h.
| using te_confun15 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 167 of file tinyexpr.h.
| using te_confun16 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 168 of file tinyexpr.h.
| using te_confun17 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 169 of file tinyexpr.h.
| using te_confun18 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 170 of file tinyexpr.h.
| using te_confun19 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 171 of file tinyexpr.h.
| using te_confun2 = te_type (*)(const te_expr*, te_type, te_type) |
Definition at line 154 of file tinyexpr.h.
| using te_confun20 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 172 of file tinyexpr.h.
| using te_confun21 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 173 of file tinyexpr.h.
| using te_confun22 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 174 of file tinyexpr.h.
| using te_confun23 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 175 of file tinyexpr.h.
| using te_confun24 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 176 of file tinyexpr.h.
Definition at line 155 of file tinyexpr.h.
Definition at line 156 of file tinyexpr.h.
Definition at line 157 of file tinyexpr.h.
| using te_confun6 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 158 of file tinyexpr.h.
| using te_confun7 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 159 of file tinyexpr.h.
| using te_confun8 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 160 of file tinyexpr.h.
| using te_confun9 = te_type (*)(const te_expr*, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 161 of file tinyexpr.h.
Definition at line 126 of file tinyexpr.h.
Definition at line 127 of file tinyexpr.h.
| using te_fun10 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 136 of file tinyexpr.h.
| using te_fun11 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 137 of file tinyexpr.h.
| using te_fun12 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 138 of file tinyexpr.h.
| using te_fun13 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 139 of file tinyexpr.h.
| using te_fun14 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 140 of file tinyexpr.h.
| using te_fun15 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 141 of file tinyexpr.h.
| using te_fun16 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 142 of file tinyexpr.h.
| using te_fun17 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 143 of file tinyexpr.h.
| using te_fun18 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 144 of file tinyexpr.h.
| using te_fun19 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 145 of file tinyexpr.h.
| using te_fun20 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 146 of file tinyexpr.h.
| using te_fun21 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 147 of file tinyexpr.h.
| using te_fun22 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 148 of file tinyexpr.h.
| using te_fun23 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 149 of file tinyexpr.h.
| using te_fun24 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 150 of file tinyexpr.h.
Definition at line 130 of file tinyexpr.h.
Definition at line 131 of file tinyexpr.h.
Definition at line 132 of file tinyexpr.h.
Definition at line 133 of file tinyexpr.h.
Definition at line 134 of file tinyexpr.h.
| using te_fun9 = te_type (*)(te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type, te_type) |
Definition at line 135 of file tinyexpr.h.
| typedef double te_type = float |
Define this to use float instead of double for the parser's data type.
The parameter and return type for parser and its functions.
Definition at line 105 of file tinyexpr.h.
| using te_usr_fun0 = std::function<te_type(std::string_view)> |
Definition at line 266 of file tinyexpr.h.
| using te_usr_fun1 = std::function<te_type(std::string_view, std::string&)> |
Definition at line 267 of file tinyexpr.h.
| using te_usr_noop = std::function<void()> |
Definition at line 265 of file tinyexpr.h.
| using te_usr_variant_type = std::variant<te_usr_noop, te_usr_fun0, te_usr_fun1> |
Definition at line 269 of file tinyexpr.h.
| using te_variant_type |
Definition at line 273 of file tinyexpr.h.
| enum te_variable_flags |
A variable's flags, effecting how it is evaluated.
Definition at line 291 of file tinyexpr.h.
|
constexpr |
Definition at line 214 of file tinyexpr.h.
|
constexpr |
Definition at line 257 of file tinyexpr.h.
|
constexpr |
Definition at line 254 of file tinyexpr.h.
|
constexpr |
Definition at line 247 of file tinyexpr.h.
|
constexpr |
Definition at line 217 of file tinyexpr.h.
|
constexpr |
Definition at line 260 of file tinyexpr.h.
|
constexpr |
Definition at line 251 of file tinyexpr.h.
|
constexpr |
Definition at line 220 of file tinyexpr.h.
|
constexpr |
Definition at line 83 of file tinyexpr.h.
|
constexpr |
Definition at line 84 of file tinyexpr.h.
|
constexpr |
Definition at line 85 of file tinyexpr.h.
|
constexpr |
Definition at line 86 of file tinyexpr.h.