Kstars

HtmRangeIterator.h
1#ifndef _HTMHANGEITERATOR_H_
2#define _HTMHANGEITERATOR_H_
3
4#include <HtmRange.h>
5
6class 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.