Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

SparseRowReader Class Template Reference

#include <sparse-row.h>

Inheritance diagram for SparseRowReader:

MatrixStreamReader List of all members.

template<class Field>
class LinBox::SparseRowReader< Field >


Public Types

typedef MatrixStreamReader<
Field >::Element 
Element

Public Methods

 SparseRowReader (int base=0)
const char * getName () const
bool isSparse () const

Protected Methods

MatrixStreamError initImpl ()
MatrixStreamError nextTripleImpl (int &m, int &n, Element &v)

Member Typedef Documentation

typedef MatrixStreamReader<Field>::Element Element
 

Reimplemented from MatrixStreamReader.


Constructor & Destructor Documentation

SparseRowReader int    base = 0 [inline]
 


Member Function Documentation

const char* getName   [inline, virtual]
 

Get a unique string describing this format.

Implements MatrixStreamReader.

MatrixStreamError initImpl   [inline, protected, virtual]
 

Read the beginning (header) of the matrix from the stream and attempt to determine if it is of this reader's type.

Returns:
A MatrixStreamError indicating the success or failure of the operation

Implements MatrixStreamReader.

bool isSparse   [inline, virtual]
 

Determine if this format is sparse or dense.

Returns:
true if it is a sparse format, false if it is a dense one

Implements MatrixStreamReader.

MatrixStreamError nextTripleImpl int &    m,
int &    n,
Element   v
[inline, protected, virtual]
 

Read the next triple of row index, column index, value and store it in the given references.

Returns:
A MatrixStreamError indicating the success or failure of the operation

Implements MatrixStreamReader.


Generated on Mon Jun 20 09:16:56 2005 for linbox by doxygen1.2.18