|
casacore
|
#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 | |
| ~CompositeNumber () | |
| destructor | |
| uInt | nextLarger (const uInt value) |
| return the next larger composite number | |
| uInt | nextSmaller (const uInt value) |
| return the next smaller composite number | |
| uInt | nearest (const uInt value) |
| return the nearest composite number | |
| uInt | nextLargerEven (const uInt value) |
| return the next larger even composite number | |
| uInt | nextSmallerEven (const uInt value) |
| return the next smaller even composite number | |
| uInt | nearestEven (const uInt value) |
| return the closest even composite number | |
| Bool | isComposite (const uInt value) |
| returns True is value is composite | |
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 55 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 |
returns True is value is composite
References casacore::NewDelAllocator< T >::value.
return the nearest composite number
References casacore::NewDelAllocator< T >::value.
return the closest even composite number
References casacore::NewDelAllocator< T >::value.
return the next larger composite number
References casacore::NewDelAllocator< T >::value.
return the next larger even composite number
References casacore::NewDelAllocator< T >::value.
return the next smaller composite number
References casacore::NewDelAllocator< T >::value.
return the next smaller even composite number
References casacore::NewDelAllocator< T >::value.
|
private |
Definition at line 90 of file CompositeNumber.h.
Definition at line 89 of file CompositeNumber.h.