casa
5.7.0-16
|
This class generates composite numbers. More...
#include <CompositeNumber.h>
Public Member Functions | |
CompositeNumber (const uInt maxval=8192) | |
constructor: Note: if you later make a call with value > maxval, we will recalculate the list of composite numbers More... | |
~CompositeNumber () | |
destructor More... | |
uInt | nextLarger (const uInt value) |
return the next larger composite number More... | |
uInt | nextSmaller (const uInt value) |
return the next smaller composite number More... | |
uInt | nearest (const uInt value) |
return the nearest composite number More... | |
uInt | nextLargerEven (const uInt value) |
return the next larger even composite number More... | |
uInt | nextSmallerEven (const uInt value) |
return the next smaller even composite number More... | |
uInt | nearestEven (const uInt value) |
return the closest even composite number More... | |
Bool | isComposite (const uInt value) |
returns True is value is composite More... | |
Private Member Functions | |
void | generate (const uInt maxval) |
Private Attributes | |
Block< uInt > | itsNumbers |
uInt | itsMaxComplete |
This class generates composite numbers.
Public interface
This class generates a list of composite numbers made up of powers of 2, 3, and 5, which are less than some max value and returns the smallest composite number greater than some number given.
Definition at line 57 of file CompositeNumber.h.
casacore::CompositeNumber::CompositeNumber | ( | const uInt | maxval = 8192 | ) |
constructor: Note: if you later make a call with value > maxval, we will recalculate the list of composite numbers
casacore::CompositeNumber::~CompositeNumber | ( | ) |
destructor
|
private |
return the closest even composite number
return the next larger composite number
return the next larger even composite number
return the next smaller composite number
return the next smaller even composite number
|
private |
Definition at line 92 of file CompositeNumber.h.
Definition at line 91 of file CompositeNumber.h.