Baloo

postingiterator.cpp
1 /*
2  SPDX-FileCopyrightText: 2015 Vishesh Handa <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #include "postingiterator.h"
8 
9 using namespace Baloo;
10 
11 PostingIterator::~PostingIterator()
12 {
13 }
14 
15 quint64 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-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.