operand.hpp 352 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
3
#ifndef GUARD_RTGLIB_OPERAND_HPP
#define GUARD_RTGLIB_OPERAND_HPP

Paul's avatar
Paul committed
4
#include <string>
Paul's avatar
Paul committed
5
6
#include <functional>
#include <rtg/shape.hpp>
Paul's avatar
Paul committed
7
#include <rtg/argument.hpp>
Paul's avatar
Paul committed
8
9
10
11
12
13
14
15
16
17
18
19
20

namespace rtg {

struct operand 
{
    std::string name;
    std::function<shape(std::vector<shape>)> compute_shape;
    std::function<argument(std::vector<argument>)> compute;
};

}

#endif