~FGTable();
FGTable(int nRows);
FGTable(int nRows, int nCols);
- float GetValue(float key);
- float GetValue(float rowKey, float colKey);
+ double GetValue(double key);
+ double GetValue(double rowKey, double colKey);
/** Read the table in.
Data in the config file should be in matrix format with the row
independents as the first column and the column independents in
</pre>
*/
void operator<<(FGConfigFile&);
- inline float GetElement(int r, int c) {return Data[r][c];}
+ FGTable& operator<<(const double n);
+ FGTable& operator<<(const int n);
+// FGTable& operator<<(const double n);
+ inline double GetElement(int r, int c) {return Data[r][c];}
void Print(void);
private:
enum type {tt1D, tt2D} Type;
- unsigned int rowCounter;
- unsigned int colCounter;
- float** Data;
+ double** Data;
int nRows, nCols;
- float** Allocate(void);
- void Debug(void);
+ int colCounter;
+ int rowCounter;
+ double** Allocate(void);
+ void Debug(int from);
};
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%