#include <genHashTable.H>
Métodos públicos estáticos | |
| static int | nextPrimeIndex (unsigned long n) |
| static int | prevPrimeIndex (unsigned long n) |
Atributos públicos estáticos | |
| static const unsigned int | numPrimes = 28 |
| Number of primes saved in primeList array. | |
| static const unsigned long | primeList [] |
| Array of prime numbers. | |
| static const unsigned int | DefaultIndex = 0 |
| Default index in primeList array. | |
| static const unsigned long | DefaultPrime |
| Default prime number (this is primeList[DefaultIndex]) | |
GenHashTable base class. Basic utilities for hash tables.
More than an abstract class, this class is a container for global definitions and functions that could be used for other classes implementing hash tables
|
inlinestatic |
Searches in array primeList the next prime number immediately greater.
| n | the base number. Result will be the next prime number immediately greater than n. |
|
inlinestatic |
Searches in array primeList the previous prime number immediately lesser.
| n | the base number. Result will be the previous prime number immediately lesser than n |