1 #ifndef OMEGA_H_EXPR_HPP
2 #define OMEGA_H_EXPR_HPP
8 #include <Omega_h_any.hpp>
9 #include <Omega_h_array.hpp>
10 #include <Omega_h_matrix.hpp>
11 #include <Omega_h_reader.hpp>
17 ExprEnv(LO size_in, Int dim_in);
18 using Args = std::vector<any>;
19 using Function = std::function<
any(Args&)>;
20 void register_variable(std::string
const& name,
any const& value);
21 void register_function(std::string
const& name, Function
const& value);
23 std::map<std::string, any> variables;
24 std::map<std::string, Function> functions;
27 std::string string(
int verbose=0);
35 using OpPtr = std::shared_ptr<ExprOp>;
41 OpPtr read_ops(std::string
const& str);
44 any at_shift(
int token, std::string& text)
override final;
45 any at_reduce(
int token, std::vector<any>& rhs)
override final;
50 using Args = ExprEnv::Args;
51 using Function = ExprEnv::Function;
54 void register_variable(std::string
const& name,
any const& value);
55 void register_function(std::string
const& name, Function
const& value);
59 any at_shift(
int token, std::string& text)
override final;
60 any at_reduce(
int token, std::vector<any>& rhs)
override final;
Definition: Omega_h_expr.hpp:37
Definition: Omega_h_expr.hpp:48
Definition: Omega_h_reader.hpp:13
Definition: Omega_h_any.hpp:68
Definition: amr_mpi_test.cpp:6
Definition: Omega_h_expr.hpp:15
Definition: Omega_h_expr.hpp:30