File indexing completed on 2024-04-21 03:51:43

0001 /*
0002     This file is part of the KDE Baloo project.
0003     SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef BALOO_VECTORPOSITIONINFOITERATOR_H
0009 #define BALOO_VECTORPOSITIONINFOITERATOR_H
0010 
0011 #include "postingiterator.h"
0012 #include "positiondb.h"
0013 
0014 namespace Baloo {
0015 
0016 class BALOO_ENGINE_EXPORT VectorPositionInfoIterator : public PostingIterator
0017 {
0018 public:
0019     explicit VectorPositionInfoIterator(const QVector<PositionInfo>& vector);
0020 
0021     quint64 docId() const override;
0022     quint64 next() override;
0023     QVector<uint> positions();
0024 
0025 private:
0026     QVector<PositionInfo> m_vector;
0027     int m_pos;
0028 };
0029 }
0030 
0031 #endif // BALOO_VECTORPOSITIONINFOITERATOR_H