aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/update/tensor_update.h
blob: 1dbd743ae9c39cc665acb06d6818bb3089ab737f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <functional>
#include <memory>

namespace vespalib::eval { struct Value; struct ValueBuilderFactory; }

namespace document {

struct TensorUpdate {
protected:
    ~TensorUpdate() = default;
public:
    using Value = vespalib::eval::Value;
    using ValueBuilderFactory = vespalib::eval::ValueBuilderFactory;
    virtual std::unique_ptr<Value> apply_to(const Value &tensor, const ValueBuilderFactory &factory) const = 0;
};

}