1/*
2 This file is part of the KDE Baloo project.
3 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#ifndef BALOO_VECTORPOSTINGITERATOR_H
9#define BALOO_VECTORPOSTINGITERATOR_H
10
11#include "postingiterator.h"
12#include <QVector>
13
14namespace Baloo {
15
16class BALOO_ENGINE_EXPORT VectorPostingIterator : public PostingIterator
17{
18public:
19 explicit VectorPostingIterator(const QVector<quint64>& values);
20
21 quint64 docId() const override;
22 quint64 next() override;
23
24private:
25 QVector<quint64> m_values;
26 int m_pos;
27};
28
29}
30
31#endif // BALOO_VECTORPOSTINGITERATOR_H
32

source code of baloo/src/engine/vectorpostingiterator.h