Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

NeigbourSet.hpp

00001 #ifndef __NeigbourSet__
00002 #define __NeigbourSet__
00003 
00004 
00022 #include "Psi2DValue.hpp"
00023 
00024 class NeigbourSet
00025 {
00026 public:
00027 
00028 int                             n, nmax;                                                        
00029 
00030 Psi2DValue**    psi;
00031 
00032 public:
00033 
00034 NeigbourSet();
00035 ~NeigbourSet() { delete[] psi; }
00036 
00037 int                             numberOfMembers(){ return n; }
00038 Psi2DValue*             get(int i){ return psi[i]; }
00039         
00040 bool                    isEmpty(){ return n <= 0; }
00041 bool                    isFull(){ return n == nmax; }
00042 
00043 void                    add(Psi2DValue* psi);
00044 void                    clear(){ n= 0; }
00045 
00046 void                    write(FILE* file);
00047 void                    output(){}
00048 };
00049 
00050 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com