Baloo

phraseanditerator.h
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_PHRASEANDITERATOR_H
9#define BALOO_PHRASEANDITERATOR_H
10
11#include "postingiterator.h"
12#include "vectorpositioninfoiterator.h"
13
14#include <QVector>
15
16namespace Baloo {
17
18class BALOO_ENGINE_EXPORT PhraseAndIterator : public PostingIterator
19{
20public:
21 explicit PhraseAndIterator(const QVector<VectorPositionInfoIterator*>& iterators);
22 ~PhraseAndIterator();
23
24 quint64 next() override;
25 quint64 docId() const override;
26 quint64 skipTo(quint64 docId) override;
27
28private:
30 quint64 m_docId;
31
32 BALOO_ENGINE_NO_EXPORT bool checkIfPositionsMatch();
33};
34}
35
36#endif // BALOO_PHRASEANDITERATOR_H
Implements storage for docIds without any associated data Instantiated for:
Definition coding.cpp:11
const QList< QKeySequence > & next()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.