Logo Search packages:      
Sourcecode: pan version File versions  Download package

unsigned long Numbers::mark_range ( unsigned long  low,
unsigned long  high,
bool  add = true 
)

Add or remove the specified range of numbers from the set. numbers outside the range [range_low...range_high] are ignored.

Parameters:
lowthe lower bound, inclusive, of the range we're changing.
highthe upper bound, inclusive, of the range we're changing.
addtrue if we're adding the numbers, false if removing
Returns:
the quantity of numbers whose presence in the set changed.

Definition at line 176 of file numbers.cc.

References mark_range().

{
   const Range r (low, high);
   return add ? mark_range(r) : unmark_range(r);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index