edbee - Qt Editor Library
rangesetlineiterator.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 namespace edbee {
9 
10 class TextRangeSet;
11 
25 {
26 public:
28 
29  bool hasNext() const;
30  int next();
31 
32 private:
33  void findNextLine();
34 
35 private:
36  TextRangeSet* rangeSetRef_;
37  int rangeIndex_;
38  int rangeEndLine_;
39  int curLine_;
40 
41 
42 };
43 
44 } // edbee
RangeSetLineIterator(TextRangeSet *rangeSet)
Constructs the rangeset line iterator.
Definition: rangesetlineiterator.cpp:16
a rangeset line iterator. For iterating over ALL distinct lines used in a rangeset.
Definition: rangesetlineiterator.h:24
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
int next()
returns the next line number
Definition: rangesetlineiterator.cpp:34
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition: textrange.h:198
bool hasNext() const
Checks if there's a next line number available.
Definition: rangesetlineiterator.cpp:27