edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::RangeSetLineIterator Class Reference

a rangeset line iterator. For iterating over ALL distinct lines used in a rangeset. More...

#include <rangesetlineiterator.h>

+ Collaboration diagram for edbee::RangeSetLineIterator:

Public Member Functions

 RangeSetLineIterator (TextRangeSet *rangeSet)
 Constructs the rangeset line iterator. More...
 
bool hasNext () const
 Checks if there's a next line number available. More...
 
int next ()
 returns the next line number More...
 

Detailed Description

a rangeset line iterator. For iterating over ALL distinct lines used in a rangeset.

Usage sample:

RangeSetLineIterator itr( controller->textSelection() )
while( itr.hasNext() ) {
qDebug() << "Line: " << itr.next();
}

Constructor & Destructor Documentation

◆ RangeSetLineIterator()

edbee::RangeSetLineIterator::RangeSetLineIterator ( TextRangeSet rangeSet)

Constructs the rangeset line iterator.

Member Function Documentation

◆ hasNext()

bool edbee::RangeSetLineIterator::hasNext ( ) const

Checks if there's a next line number available.

◆ next()

int edbee::RangeSetLineIterator::next ( )

returns the next line number


The documentation for this class was generated from the following files: