struct mrpt::expr::CRuntimeCompiledExpression::Impl

Overview

struct Impl
{
    // fields

    exprtk::expression<double> m_compiled_formula;
    std::string m_original_expr_str;
    bool m_compiled = false;
    std::map<std::string, double*> m_user_variables;
    std::vector<std::shared_ptr<exprtk::ifunction<double>>> m_function_adaptors;

    // methods

    template <typename... Args>
    void add_functions(
        const std::map<std::string, std::function<double(Args...)>>& funcs,
        exprtk::symbol_table<double>& symbol_table
        );
};

Fields

std::map<std::string, double*> m_user_variables

Variables registered with register_symbol_table()

std::vector<std::shared_ptr<exprtk::ifunction<double>>> m_function_adaptors

Adaptors of the user functions, referenced by the compiled formula.