00001 #ifndef __Psi2DValue__ 00002 #define __Psi2DValue__ 00003 00004 00005 00023 #include <stdio.h> 00024 00025 00026 class Psi2DValue 00027 { 00028 public: 00029 00030 int x, y; 00031 float rate; // mostly a kind of distance 00032 float rate1; // mostly a kind of distance 00033 00034 int index; // used to access heap faster 00035 00036 public: 00037 00038 Psi2DValue(int ax, int ay, float arate=1e12){ x= ax; y= ay; rate=rate1= arate; index=-1; } 00039 virtual ~Psi2DValue(){} 00040 00041 float getRate(){ return rate; } 00042 float getRate1(){ return rate1; } 00043 int getX(){ return x; } 00044 int getY(){ return y; } 00045 00046 void setRate1(float arate){ rate1= arate; } 00047 void setRate(float arate){ rate= arate; } 00048 void setX(int ax){ x= ax; } 00049 void setY(int ay){ y= ay; } 00050 00051 00052 virtual void report(FILE* file){} 00053 }; 00054 00055 00056 00057 #endif