blob: dd0ab9264c40a30a880460401ae870ec8980efd3 (
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 Vespa.ai. 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; }
};
}
|