00001 #ifndef __MPsi2DValue__
00002 #define __MPsi2DValue__
00003
00004
00005
00023 #include <stdio.h>
00024
00025
00026 class MPsi2DValue
00027 {
00028 public:
00029
00030 int frontId;
00031
00032 int x, y;
00033 float rate;
00034
00035 int index;
00036
00037 public:
00038
00039 MPsi2DValue(int ax, int ay, int front=-1, float arate=1e12){ x= ax; y= ay; frontId= front; rate= arate; index=-1; }
00040 virtual ~MPsi2DValue(){}
00041
00042 int getFront(){ return frontId; }
00043
00044 float getRate(){ return rate; }
00045 int getX(){ return x; }
00046 int getY(){ return y; }
00047
00048 void setFront(int front){ frontId= front; }
00049 void setRate(float arate){ rate= arate; }
00050 void setX(int ax){ x= ax; }
00051 void setY(int ay){ y= ay; }
00052
00053
00054 virtual void report(FILE* file){}
00055 };
00056
00057
00058
00059 #endif