linbox
matrix-stream-readers.h File Reference

Here is where all the formats (each of which is a subclass of MatrixStreamReader) are defined, in two places: More...

#include "sms.h"
#include "sparse-row.h"
#include "generic-dense.h"
#include "matrix-market.h"
#include "maple.h"

Macros

#define __MATRIX_STREAM_READERDEFS
 

Detailed Description

Here is where all the formats (each of which is a subclass of MatrixStreamReader) are defined, in two places:

First, the macro __MATRIX_STREAM_READERDEFS is put in the init() function of MatrixStream and it creates all the format readers. For each format reader, a line of this macro should read: addReader( new MyReaderType() );

Second, so those statements actually compile, the file containing each format reader should be included with a line of the form:

#include "my-reader.h" 

Macro Definition Documentation

◆ __MATRIX_STREAM_READERDEFS

#define __MATRIX_STREAM_READERDEFS
Value:
do { \
addReader( new SMSReader<Field>() ); \
addReader( new SparseRowReader<Field>() ); \
addReader( new MatrixMarketReader<Field>() ); \
addReader( new MapleReader<Field>() ); \
addReader( new DenseReader<Field>() ); \
} while (false)