00001 // Interpol.h --- 00002 // 00003 // Filename: Interpol.h 00004 // Description: 00005 // Author: Subhasis Ray 00006 // Maintainer: 00007 // Created: Wed Jun 25 15:13:52 2014 (+0530) 00008 // Version: 00009 // Last-Updated: 00010 // By: 00011 // Update #: 0 00012 // URL: 00013 // Keywords: 00014 // Compatibility: 00015 // 00016 // 00017 00018 // Commentary: 00019 // 00020 // 00021 // 00022 // 00023 00024 // Change log: 00025 // 00026 // 00027 // 00028 // 00029 // This program is free software; you can redistribute it and/or 00030 // modify it under the terms of the GNU General Public License as 00031 // published by the Free Software Foundation; either version 3, or 00032 // (at your option) any later version. 00033 // 00034 // This program is distributed in the hope that it will be useful, 00035 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00036 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00037 // General Public License for more details. 00038 // 00039 // You should have received a copy of the GNU General Public License 00040 // along with this program; see the file COPYING. If not, write to 00041 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth 00042 // Floor, Boston, MA 02110-1301, USA. 00043 // 00044 // 00045 00046 // Code: 00047 00048 #ifndef _INTERPOL_H 00049 #define _INTERPOL_H 00050 00056 class Interpol: public TableBase 00057 { 00058 public: 00059 Interpol(); 00060 Interpol(double xmin, double xmax); 00061 00063 // Here are the interface functions for the MOOSE class 00065 void setXmin( double value ); 00066 double getXmin() const; 00067 void setXmax( double value ); 00068 double getXmax() const; 00069 double getY() const; 00071 // Here are the Interpol Destination functions 00073 void handleInput(double x); 00074 void process( const Eref& e, ProcPtr p ); 00075 void reinit( const Eref& e, ProcPtr p ); 00076 00077 00078 static const Cinfo* initCinfo(); 00079 static const unsigned int MAX_DIVS; 00080 protected: 00081 double x_; 00082 double xmin_; 00083 double xmax_; 00084 double y_; 00085 }; 00086 00087 00088 #endif // _INTERPOL_H 00089 00090 00091 // 00092 // Interpol.h ends here