The Original CHomP Software
|
This is a simple class which is a wrapper for computing the smallest prime number greater or equal to the given integer. More...
#include <integer.h>
Public Member Functions | |
primeint (int_t k=0) | |
The constructor which computes the smallest prime number greater than or equal to the given one. More... | |
primeint & | operator= (const primeint &p) |
The assignment operator. More... | |
primeint & | operator= (int_t k) |
The assignment operator which also rounds up to the nearest prime number. More... | |
operator int_t () const | |
The conversion operator to an integer number which extracts the prime number. More... | |
Private Attributes | |
int_t | n |
The actual prime number stored in this class. More... | |
This is a simple class which is a wrapper for computing the smallest prime number greater or equal to the given integer.
chomp::homology::primeint::primeint | ( | int_t | k = 0 | ) |
The constructor which computes the smallest prime number greater than or equal to the given one.
|
inline |
The conversion operator to an integer number which extracts the prime number.
Definition at line 85 of file integer.h.
The assignment operator which also rounds up to the nearest prime number.
|
private |
The actual prime number stored in this class.
Definition at line 79 of file integer.h.
Referenced by operator=().