• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • htmesh
HtmRangeIterator.cpp
Go to the documentation of this file.
1 #include <HtmRangeIterator.h>
2 
3 Key HtmRangeIterator::next()
4 {
5  Key key = this->nextval;
6  getNext();
7  return key;
8 }
9 
10 void HtmRangeIterator::getNext()
11 {
12  if (currange[0] <= 0){
13  nextval = -1;
14  return;
15  }
16  nextval++;
17  if (nextval > currange[1]){
18  range->getNext(&currange[0], &currange[1]);
19  if (currange[0] <= 0){
20  nextval = -1;
21  return;
22  }
23  nextval = currange[0];
24  }
25  return;
26 }
27 
28 bool HtmRangeIterator::hasNext()
29 {
30  return (nextval > 0);
31 }
32 
33 
34 // HtmRangeIterator::
HtmRangeIterator::next
Key next()
Definition: HtmRangeIterator.cpp:3
HtmRangeIterator.h
Key
int64 Key
Definition: SkipListElement.h:30
HtmRange::getNext
int getNext(Key *lo, Key *hi)
Definition: HtmRange.cpp:72
HtmRangeIterator::hasNext
bool hasNext()
Definition: HtmRangeIterator.cpp:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal