Baloo

postingiterator.cpp
1/*
2 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#include "postingiterator.h"
8
9using namespace Baloo;
10
11PostingIterator::~PostingIterator()
12{
13}
14
15quint64 PostingIterator::skipTo(quint64 id)
16{
17 quint64 currentId = docId();
18 while (currentId < id) {
19 currentId = next();
20 if (!currentId) {
21 break;
22 }
23 }
24 return currentId;
25}
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 Mon Nov 18 2024 12:18:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.