Custom variable or function that can be added to a te_parser. More...
#include <tinyexpr.h>
Public Attributes | |
| name_type | m_name |
| The name as it would appear in a formula. | |
| te_variant_type | m_value |
| The te_type constant, te_type pointer, or function to bind the name to. | |
| te_variable_flags | m_type {TE_DEFAULT} |
| The type that m_value represents. | |
| te_expr * | m_context {nullptr} |
Private Types | |
| using | name_type = std::string |
Private Member Functions | |
| bool | operator< (const te_variable &that) const |
Custom variable or function that can be added to a te_parser.
Definition at line 357 of file tinyexpr.h.
|
private |
Definition at line 360 of file tinyexpr.h.
|
inlinenodiscardprivate |
Definition at line 364 of file tinyexpr.h.
| te_expr* te_variable::m_context {nullptr} |
If m_value is a function pointer of type te_confun0-te_confun24, then this is passed to that function when called. This is useful for passing an object which manages additional data to your functions.
Definition at line 378 of file tinyexpr.h.
| name_type te_variable::m_name |
The name as it would appear in a formula.
Definition at line 369 of file tinyexpr.h.
| te_variable_flags te_variable::m_type {TE_DEFAULT} |
The type that m_value represents.
Definition at line 374 of file tinyexpr.h.
| te_variant_type te_variable::m_value |
The te_type constant, te_type pointer, or function to bind the name to.
Definition at line 372 of file tinyexpr.h.