Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

fibonacci.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     fibonacci.h  -  Definition of Fibonacci class.
00003                              -------------------
00004     begin                : October 23 2002
00005     copyright            : (C) 2003 by Vojtìch Toman
00006     email                : vtoman@lit.cz
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00025 #ifdef __GNUG__
00026 # pragma interface
00027 #endif
00028 
00029 
00030 #ifndef FIBONACCI_H
00031 #define FIBONACCI_H
00032 
00033 
00034 
00035 
00036 
00037 #include <cstdlib>      //for size_t
00038 
00039 
00040 #include "defs.h"
00041 #include "iodevice.h"
00042 
00048 class Fibonacci
00049 {
00050 public:
00052   static unsigned long encode(unsigned long number);
00053 
00055   static unsigned long decode(unsigned long code);
00056 
00058   static size_t encodeToBuffer(void *buffer, size_t itemSize, unsigned long number);
00059 
00061   static size_t decodeFromBuffer(void *buffer, size_t itemSize, size_t *nrItems);
00062 
00063 }; //of Fibonacci
00064 
00065 #endif //FIBONACCI_H
00066 
00067 
00068 

Generated on Wed Feb 5 10:43:01 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002