Main Page | Class Hierarchy | Class List | File List | Class Members

prime.h

00001 /* ************************************************************************* 00002 prime.h - description 00003 ------------------- 00004 begin : Wed Oct 16 2002 00005 copyright : (C) 2002 by Micha Riser 00006 email : mriser@gmx.net 00007 00008 $Id: prime_8h-source.html,v 1.1 2005/02/04 21:02:27 micha Exp $ 00009 00010 ************************************************************************* */ 00011 00012 /* ************************************************************************* 00013 * * 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; either version 2 of the License, or * 00017 * (at your option) any later version. * 00018 * * 00019 ************************************************************************* */ 00020 00021 #ifndef PRIME_H 00022 #define PRIME_H 00023 00028 class Prime { 00029 00030 private: // disallow instantiation of Prime class 00031 Prime(); 00032 ~Prime(); 00033 00034 public: // Public static methods 00035 00038 static bool isPrime(int v); 00039 00042 static int nextPrimeBiggerThan(int v); 00043 00046 static int nextPrimeSmallerThan(int v); 00047 }; 00048 00049 #endif

Generated on Thu Jan 27 12:16:06 2005 for raytracer.kdevelop by doxygen 1.3.8