00001 /*************************************************************************** 00002 ** 00003 ** This file is part of QGpCompatibility. 00004 ** 00005 ** This file may be distributed and/or modified under the terms of the 00006 ** GNU General Public License version 2 or 3 as published by the Free 00007 ** Software Foundation and appearing in the file LICENSE.GPL included 00008 ** in the packaging of this file. 00009 ** 00010 ** This file is distributed in the hope that it will be useful, but WITHOUT 00011 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 ** more details. 00014 ** 00015 ** You should have received a copy of the GNU General Public License 00016 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 ** 00018 ** See http://www.geopsy.org for more information. 00019 ** 00020 ** Created : 2004-10-22 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (ULg, Liège, Belgium) 00024 ** Marc Wathelet (LGIT, Grenoble, France) 00025 ** 00026 ***************************************************************************/ 00027 00028 #ifndef COMPATMODALREFINE_H 00029 #define COMPATMODALREFINE_H 00030 00031 #include <QtCore> 00032 #include <QGpCoreTools.h> 00033 00034 namespace QGpCompatibility { 00035 00036 class CompatModalRefine 00037 { 00038 public: 00039 CompatModalRefine(double omega, double val); 00040 CompatModalRefine(int nm) {_values.resize(nm);} 00041 ~CompatModalRefine() {} 00042 00043 bool operator<(const CompatModalRefine& o) const; 00044 00045 double& omega() {return _omega;} 00046 const double& omega() const {return _omega;} 00047 00048 double& value(int im) {return _values[im];} 00049 const double& value(int im) const {return _values[im];} 00050 private: 00051 double _omega; 00052 QVector<double> _values; 00053 }; 00054 00055 inline bool CompatModalRefine::operator<(const CompatModalRefine& o) const 00056 { 00057 TRACE; 00058 return _omega<o._omega; 00059 } 00060 00061 00062 } // namespace QGpCompatibility 00063 00064 #endif // COMPATMODALREFINE_H