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_VECTORPOSTINGITERATOR_H 0009 #define BALOO_VECTORPOSTINGITERATOR_H 0010 0011 #include "postingiterator.h" 0012 #include <QVector> 0013 0014 namespace Baloo { 0015 0016 class BALOO_ENGINE_EXPORT VectorPostingIterator : public PostingIterator 0017 { 0018 public: 0019 explicit VectorPostingIterator(const QVector<quint64>& values); 0020 0021 quint64 docId() const override; 0022 quint64 next() override; 0023 0024 private: 0025 QVector<quint64> m_values; 0026 int m_pos; 0027 }; 0028 0029 } 0030 0031 #endif // BALOO_VECTORPOSTINGITERATOR_H