Página principal   Lista de namespace   Lista de componentes   Lista de archivos   Miembros de las clases   Archivos de los miembros  

VElement.h

Ir a la documentación de este archivo.
00001 
00009 #ifndef _VElement_H
00010 #define _VElement_H
00011 
00012 
00020 class VElement
00021 {
00022 private:
00023     // Valor del elemento del vector
00024     int value;
00025     // Contadores de intercambios y comparaciones
00026     static int nAssign;
00027     static int nComparison;
00028 public:
00032     VElement();
00038     VElement(int v);
00044     void set(int v);
00045 
00051     int get() const;
00052 
00058     bool operator >(const VElement &vE) const;
00059 
00065     bool operator >(int e) const;
00066 
00072     bool operator <(const VElement &vE) const;
00073 
00079     bool operator <(int e) const;
00080 
00086     bool operator >=(const VElement &vE) const;
00087 
00093     bool operator >=(int e) const;
00094 
00100     bool operator <=(const VElement &vE) const;
00101 
00107     bool operator <=(int e) const;
00108 
00114     bool operator ==(const VElement &vE) const;
00115 
00121     bool operator ==(int e) const;
00122 
00128     VElement & operator =(int e);
00129 
00135     VElement & operator =(const VElement &vE);
00136 
00141     static void initNAssign()
00142     {
00143         nAssign = 0;
00144     }
00150     static int getNAssign()
00151     {
00152         return nAssign;
00153     }
00154 
00159     static void initNComparison()
00160     {
00161         nComparison = 0;
00162     }
00163 
00169     static int getNComparison ()
00170     {
00171         return nComparison;
00172     }
00173 };
00174 
00175 
00176 #endif

Generado el Wed May 6 15:27:14 2009 para Practica 4 MP: Ordenacion por doxygen1.2.14 escrito por Dimitri van Heesch, © 1997-2002