mgcpp
A C++ Math Library Based on CUDA
evaluator.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef EVALUATOR_HPP
8 #define EVALUATOR_HPP
9 
11 
12 namespace mgcpp {
13 namespace evaluator {
14 template <typename Op>
15 inline typename Op::result_type eval(Op const& op, eval_context const& ctx);
16 };
17 
18 template <typename T>
19 inline typename T::result_type eval(expression<T> const& expr,
20  eval_context const& ctx);
21 
22 template <typename T>
23 inline typename T::result_type eval(expression<T> const& expr);
24 
25 } // namespace mgcpp
26 
28 #endif // EVALUATOR_HPP
Definition: adapter_base.hpp:12
Definition: expression.hpp:18
Definition: eval_context.hpp:20
Op::result_type eval(Op const &op, eval_context const &ctx)