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_VECTORPOSITIONINFOITERATOR_H |
9 | #define BALOO_VECTORPOSITIONINFOITERATOR_H |
10 | |
11 | #include "postingiterator.h" |
12 | #include "positiondb.h" |
13 | |
14 | namespace Baloo { |
15 | |
16 | class BALOO_ENGINE_EXPORT VectorPositionInfoIterator : public PostingIterator |
17 | { |
18 | public: |
19 | explicit VectorPositionInfoIterator(const QVector<PositionInfo>& vector); |
20 | |
21 | quint64 docId() const override; |
22 | quint64 next() override; |
23 | QVector<uint> positions(); |
24 | |
25 | private: |
26 | QVector<PositionInfo> m_vector; |
27 | int m_pos; |
28 | }; |
29 | } |
30 | |
31 | #endif // BALOO_VECTORPOSITIONINFOITERATOR_H |
32 | |