19 NO_ERROR = 0, INVALID_RANGE_NUMBER
24 NOT_IN_RANGE = 0, CONTEXT_RANGE, IN_RANGE
43 typedef int RangeElemType;
44 typedef std::pair<RangeElemType, RangeElemType> RangeType;
46 typedef std::set<RangeType> LineRangeSet;
62 const LineRangeSet &getLineRangeSet()
const {
84 void setContextLines(
unsigned int context) {
89 LineRangeSet lineRangeSet;
bool searchFromTheStart
whether to perform the search from the first element of the set
Definition: lineranges.h:94
int contextLines
The number of lines making the context (i.e., the number of lines that are not part of a range but ar...
Definition: lineranges.h:105
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
RangeResult isInRange(const RangeElemType e)
Checks whether the passed element is in a range of this set.
Definition: lineranges.cpp:58
LineRangeSet::const_iterator currentRange
The current range for performing the search of isInRange.
Definition: lineranges.h:99
Functionalities for detecting whether a line is in one of the stored line ranges (or in the context o...
Definition: lineranges.h:38
RangeError
a possible error in specifying a range
Definition: lineranges.h:18
RangeResult
result for a check whether a number is in a range (or in a context)
Definition: lineranges.h:23
void reset()
The next isInRange search will start from the first element of the set.
Definition: lineranges.h:71
RangeError addRange(const std::string &range)
Adds a range to the set.
Definition: lineranges.cpp:40