nil::crypto3::math::expressions::detail::ast::eval Struct Reference

#include <evaluator.hpp>

+ Collaboration diagram for nil::crypto3::math::expressions::detail::ast::eval:

Public Types

using result_type = double
 

Public Member Functions

 eval (std::map< std::string, double > sym)
 
double operator() (binary_op const &x) const
 
double operator() (double n) const
 
double operator() (expression const &x) const
 
double operator() (nil) const
 
double operator() (operation const &x, double lhs) const
 
double operator() (std::string const &c) const
 
double operator() (unary_op const &x) const
 

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ eval()

nil::crypto3::math::expressions::detail::ast::eval::eval ( std::map< std::string, double >  sym)
inlineexplicit

Member Function Documentation

◆ operator()() [1/7]

double nil::crypto3::math::expressions::detail::ast::eval::operator() ( binary_op const &  x) const
inline

◆ operator()() [2/7]

double nil::crypto3::math::expressions::detail::ast::eval::operator() ( double  n) const
inline

◆ operator()() [3/7]

double nil::crypto3::math::expressions::detail::ast::eval::operator() ( expression const &  x) const
inline

◆ operator()() [4/7]

double nil::crypto3::math::expressions::detail::ast::eval::operator() ( nil  ) const
inline

◆ operator()() [5/7]

double nil::crypto3::math::expressions::detail::ast::eval::operator() ( operation const &  x,
double  lhs 
) const
inline

◆ operator()() [6/7]

double nil::crypto3::math::expressions::detail::ast::eval::operator() ( std::string const &  c) const
inline

◆ operator()() [7/7]

double nil::crypto3::math::expressions::detail::ast::eval::operator() ( unary_op const &  x) const
inline

The documentation for this struct was generated from the following file: