A class to represent and handle ranges of lines. They can be sorted, checked for uniqueness and a line number can be compared to the range (is it before or after?).
#include <IOInterface.h>
Public Member Functions | |
LinesRange () | |
LinesRange (const size_t &l1, const size_t &l2) | |
bool | in (const size_t &ll) const |
Is the provided line number within the current range? More... | |
bool | operator< (const size_t &ll) const |
Is the provided line number before the end of the range? More... | |
bool | operator> (const size_t &ll) const |
Is the provided line number after the start of the range? More... | |
bool | operator< (const LinesRange &ll) const |
bool | operator== (const LinesRange &ll) const |
const std::string | toString () const |
Public Attributes | |
size_t | start |
size_t | end |
|
inline |
|
inline |
|
inline |
Is the provided line number within the current range?
[in] | ll | line number to check |
|
inline |
|
inline |
Is the provided line number before the end of the range?
[in] | ll | line number to check |
|
inline |
|
inline |
Is the provided line number after the start of the range?
[in] | ll | line number to check |
|
inline |
size_t mio::LinesRange::end |
size_t mio::LinesRange::start |