00001 #ifndef ITABLEFUNCT_H 00002 #define ITABLEFUNCT_H 00003 00004 #include <stdio.h> 00005 #include "iotools.h" 00006 00007 00008 /** 00009 This file declares the class of tablefunct, which implements various types of interpolation. 00010 The values for interpolation are given by the table. 00011 */ 00012 class itablefunct 00013 { 00014 public: 00015 itablefunct(); 00016 ~itablefunct(); 00017 00018 void read(XFILE *in); 00019 void print(FILE *out); 00020 void read_prop(FILE *in); 00021 long getval(double temp); 00022 00023 void copy(itablefunct &tf); 00024 long compare(itablefunct &tf); 00025 00026 00027 ///number of function values 00028 long asize; 00029 ///array of time values 00030 double *x; 00031 ///array of function values 00032 long *y; 00033 00034 }; 00035 #endif