aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/update/tensor_update.h
blob: bfadcf55893e2377f1c920159d1053fab9c89abd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Vespa.ai. 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;
};

}