Logo Search packages:      
Sourcecode: pan version File versions

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:
low the lower bound, inclusive, of the range we're changing.
high the upper bound, inclusive, of the range we're changing.
add true if we're adding the numbers, false if removing
Returns:
the quantity of numbers whose presence in the set changed.

Definition at line 175 of file numbers.cc.

References mark_range().

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


Generated by  Doxygen 1.6.0   Back to index