Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1CompositeNumber.html
Дата изменения: Unknown
Дата индексирования: Mon Feb 14 22:36:58 2011
Кодировка:

Поисковые слова: images
casacore: casa::CompositeNumber Class Reference
Public Member Functions | Private Member Functions | Private Attributes

casa::CompositeNumber Class Reference
[Utilities_module]

This class generates composite numbers. More...

#include <CompositeNumber.h>

List of all members.

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< uIntitsNumbers
uInt itsMaxComplete

Detailed Description

This class generates composite numbers.

Intended use:

Public interface

Synopsis

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.

Example

    CompositeNumber cn(1000);
    Int n = cn.nextLarger(319);
    Int m = cn.nextSmaller(462);
    Int l = cn.nearest(462);

Definition at line 57 of file CompositeNumber.h.


Constructor & Destructor Documentation

casa::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

casa::CompositeNumber::~CompositeNumber (  ) 

destructor


Member Function Documentation

void casa::CompositeNumber::generate ( const uInt  maxval  )  [private]
Bool casa::CompositeNumber::isComposite ( const uInt  value  ) 

returns True is value is composite

uInt casa::CompositeNumber::nearest ( const uInt  value  ) 

return the nearest composite number

uInt casa::CompositeNumber::nearestEven ( const uInt  value  ) 

return the closest even composite number

uInt casa::CompositeNumber::nextLarger ( const uInt  value  ) 

return the next larger composite number

uInt casa::CompositeNumber::nextLargerEven ( const uInt  value  ) 

return the next larger even composite number

uInt casa::CompositeNumber::nextSmaller ( const uInt  value  ) 

return the next smaller composite number

uInt casa::CompositeNumber::nextSmallerEven ( const uInt  value  ) 

return the next smaller even composite number


Member Data Documentation

Definition at line 92 of file CompositeNumber.h.

Definition at line 91 of file CompositeNumber.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines