aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/tensor/empty_subspace.h
blob: 017486bc643570471fa65219dfc9008ae6e2dbab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/eval/eval/typed_cells.h>
#include <vector>

namespace search::tensor {

class SubspaceType;

/*
 * Class containg an empty subspace, used as a bad fallback when we cannot
 * get a real subspace.
 */
class EmptySubspace
{
    std::vector<char>          _empty_space;
    vespalib::eval::TypedCells _cells;
public:
    explicit EmptySubspace(const SubspaceType& type);
    ~EmptySubspace();
    const vespalib::eval::TypedCells& cells() const noexcept { return _cells; }
};

}