Source: rank/matrixsource.h
|
|
|
|
/***************************************************************************
matrixsource.h - description
-------------------
begin : Mit Apr 2 2003
copyright : (C) 2003 by Ingmar Bauer
email : ingmar@metacrawler.de
***************************************************************************/
#ifndef MATRIXSOURCE_H
#define MATRIXSOURCE_H
/**Reads standard matrix files and offer access to this data.
*@author Ingmar Bauer
*/
typedef struct matrix_element_struct {
int col;
float value;
} matrix_element;
class matrixsource {
public:
matrixsource(string fname);
~matrixsource();
void reInitMatrix();
int prepareNextRow(int &line);
int getNextRowEl(matrix_element &el);
int getSize();
private:
string fname;
ifstream *f_matrix;
int n;
int n_el;
};
#endif
Generated by: ingmar on pluto on Fri Aug 8 21:29:16 2003, using kdoc 2.0a54. |