Baloo

andpostingiterator.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_ANDPOSTINGITERATOR_H
9#define BALOO_ANDPOSTINGITERATOR_H
10
11#include "postingiterator.h"
12#include <QVector>
13
14namespace Baloo {
15
16class BALOO_ENGINE_EXPORT AndPostingIterator : public PostingIterator
17{
18public:
19 explicit AndPostingIterator(const QVector<PostingIterator*>& iterators);
20 ~AndPostingIterator() override;
21
22 quint64 next() override;
23 quint64 docId() const override;
24 quint64 skipTo(quint64 docId) override;
25
26private:
27 QVector<PostingIterator*> m_iterators;
28 quint64 m_docId;
29};
30
31}
32
33#endif // BALOO_ANDPOSTINGITERATOR_H
Implements storage for docIds without any associated data Instantiated for:
Definition coding.cpp:11
QAction * next(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.