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

bool Numbers::mark_one ( unsigned long  number,
bool  add = true 

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

numberthe number to add or remove.
addtrue if we're adding the number, false if removing
the number's previous state in the set.

Definition at line 183 of file numbers.cc.

References mark_range().

   const unsigned long changed_qty (mark_range (number, number, add));

   if (add)
      return changed_qty==0;
   else /* remove */
      return changed_qty!=0;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index