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

#pragma once

#include <memory>

namespace search::attribute {

class AttributeReadGuard;

/**
 * Interface for an attribute vector used to create a short-lived read guard over that attribute.
 */
class ReadableAttributeVector {
public:
    virtual ~ReadableAttributeVector() = default;
    virtual std::unique_ptr<AttributeReadGuard> makeReadGuard(bool stableEnumGuard) const = 0;
};

}