operand.hpp 357 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef GUARD_RTGLIB_OPERAND_HPP
#define GUARD_RTGLIB_OPERAND_HPP

#include <functional>
#include <rtg/shape.hpp>

namespace rtg {

struct argument
{
    void* data;
    shape s;
};

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

}

#endif