"vscode:/vscode.git/clone" did not exist on "e15b8333f891b020c1c1ef83f4c6fa557530afb6"
operation.hpp 631 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef RTG_GUARD_RTGLIB_OPERAND_HPP
#define RTG_GUARD_RTGLIB_OPERAND_HPP

#include <string>
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>
#include <rtg/shape.hpp>
#include <rtg/argument.hpp>

namespace rtg {

14
<%
Paul's avatar
Paul committed
15
16
17
interface('operation',
    virtual('name', returns='std::string', const=True),
    virtual('compute_shape', returns='shape', input='std::vector<shape>', const=True),
Paul's avatar
Paul committed
18
19
    virtual('compute', returns='argument', input='std::vector<argument>', const=True),
    friend('operator<<', returns='std::ostream &', os='std::ostream &', op='const operation &')
Paul's avatar
Paul committed
20
)
21
%>
Paul's avatar
Paul committed
22
23
24
25

} // namespace rtg

#endif