Wavelet and Image class library  1.3.2
VectorPosition.hh
Go to the documentation of this file.
00001 /*
00002  * class VectorPosition
00003  *
00004  * $Date$
00005  * $Revision$
00006  *
00007  */
00008 
00009 #ifndef VECTOR_POSITION_HH__
00010 #define VECTOR_POSITION_HH__
00011 
00012 #include "WImage/ReferenceVector.hh"
00013 
00022 /*abstract*/
00023 class 
00024 VectorPosition
00025 {
00026 public:
00028   VectorPosition (void);
00033   VectorPosition (int newsize);
00034 
00036   virtual ~VectorPosition (void) {}
00037   
00041   inline void size (int newsize) { m_vsize = newsize; }
00042 
00046   inline int size (void ) { return m_vsize; }
00047 
00054   inline int pos (int position) { 
00055     int dummy; return pos (position, 0, this->m_vsize, dummy); 
00056   } 
00057 
00067   inline int pos (int position, int length) { 
00068     int dummy; return pos (position, 0, length, dummy);
00069   }
00070 
00082   inline int pos (int position, int start, int length) { 
00083     int dummy; return pos (position, start, length, dummy);
00084   }
00085   
00099   virtual int pos (int position, int start, int end, int &sign) = 0;
00100 
00105   inline void setsymm (bool symm) { m_symmetry = symm; }
00106 
00110   inline bool issymm (void) { return m_symmetry; }
00111 
00112 protected: 
00114   int m_vsize;
00116   bool m_symmetry;
00117 }; /* class VectorPosition */
00118 
00121 #endif /* VECTOR_POSITION_HH__ */
00122 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines