mgcpp
A C++ Math Library Based on CUDA
include
mgcpp
expressions
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
10
#include <
mgcpp/expressions/forward.hpp
>
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
27
#include <
mgcpp/expressions/evaluator.tpp
>
28
#endif // EVALUATOR_HPP
mgcpp
Definition:
adapter_base.hpp:12
mgcpp::expression
Definition:
expression.hpp:18
mgcpp::eval_context
Definition:
eval_context.hpp:20
mgcpp::evaluator::eval
Op::result_type eval(Op const &op, eval_context const &ctx)
evaluator.tpp
forward.hpp
Generated by
1.8.13