Baloo

postingiterator.h
1/*
2 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef BALOO_POSTINGITERATOR_H
8#define BALOO_POSTINGITERATOR_H
9
10#include <QVector>
11#include "engine_export.h"
12
13namespace Baloo {
14
15/**
16 * A PostingIterator is an abstract base class which can be used to iterate
17 * over all the "postings" or "documents" which are particular term appears.
18 *
19 * All PostingIterators should iterate over a list of non-decreasing document ids.
20 */
21class BALOO_ENGINE_EXPORT PostingIterator
22{
23public:
24 virtual ~PostingIterator();
25
26 virtual quint64 next() = 0;
27 virtual quint64 docId() const = 0;
28 virtual quint64 skipTo(quint64 docId);
29};
30}
31
32#endif // BALOO_POSTINGITERATOR_H
A PostingIterator is an abstract base class which can be used to iterate over all the "postings" or "...
Implements storage for docIds without any associated data Instantiated for:
Definition coding.cpp:11
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:58:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.