Kstars

HtmRangeIterator.h
1 #ifndef _HTMHANGEITERATOR_H_
2 #define _HTMHANGEITERATOR_H_
3 
4 #include <HtmRange.h>
5 
6 class HtmRangeIterator
7 {
8  public:
9  Key next();
10  char *nextSymbolic(char *buffer); /* User responsible for managing it */
11  bool hasNext();
12  HtmRangeIterator(HtmRange *ran)
13  {
14  range = ran;
15  range->reset();
16  range->getNext(&currange[0], &currange[1]);
17  nextval = currange[0] - 1;
18  getNext();
19  }
20 
21  protected:
22  HtmRange *range;
23  void getNext();
24 
25  private:
26  Key nextval;
27  Key currange[2] { 0 }; /* Low and High */
28  HtmRangeIterator() : range(nullptr), nextval(-1) {}
29 };
30 
31 #endif
QAction * next(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.