target.hpp 498 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_TARGET_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_TARGET_HPP
Paul's avatar
Paul committed
3
4
5
6
7
8

#include <string>
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>
Paul's avatar
Paul committed
9
#include <migraph/context.hpp>
Paul's avatar
Paul committed
10

Paul's avatar
Paul committed
11
namespace migraph {
Paul's avatar
Paul committed
12
13
14
15
16
17

struct program;

<%
interface('target',
    virtual('name', returns='std::string', const=True),
Paul's avatar
Paul committed
18
19
    virtual('apply', returns='void', p='program &', const=True),
    virtual('get_context', returns='context', const=True)
Paul's avatar
Paul committed
20
21
22
)
%>

Paul's avatar
Paul committed
23
} // namespace migraph
Paul's avatar
Paul committed
24
25

#endif