edbee - Qt Editor Library
edbee
util
rangesetlineiterator.h
Go to the documentation of this file.
1
6
#pragma once
7
8
namespace
edbee
{
9
10
class
TextRangeSet;
11
24
class
RangeSetLineIterator
25
{
26
public
:
27
RangeSetLineIterator
(
TextRangeSet
* rangeSet );
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
edbee::RangeSetLineIterator::RangeSetLineIterator
RangeSetLineIterator(TextRangeSet *rangeSet)
Constructs the rangeset line iterator.
Definition:
rangesetlineiterator.cpp:16
edbee::RangeSetLineIterator
a rangeset line iterator. For iterating over ALL distinct lines used in a rangeset.
Definition:
rangesetlineiterator.h:24
edbee
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition:
commentcommand.cpp:22
edbee::RangeSetLineIterator::next
int next()
returns the next line number
Definition:
rangesetlineiterator.cpp:34
edbee::TextRangeSet
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition:
textrange.h:198
edbee::RangeSetLineIterator::hasNext
bool hasNext() const
Checks if there's a next line number available.
Definition:
rangesetlineiterator.cpp:27
Generated on Tue Jun 13 2017 08:45:59 for edbee - Qt Editor Library by
1.8.13