#include <Teuchos_MatrixMarket_CoordDataReader.hpp>
|
| CoordDataReader (const Teuchos::RCP< Callback > &adder) |
|
| CoordDataReader () |
|
virtual | ~CoordDataReader () |
|
| CoordDataReaderBase (const Teuchos::RCP< Callback > &adder) |
| Constructor with "adder" argument. More...
|
|
| CoordDataReaderBase () |
| No-argument constructor. More...
|
|
virtual | ~CoordDataReaderBase () |
| Virtual destructor for safety and happy compilers. More...
|
|
void | setAdder (const Teuchos::RCP< Callback > &adder) |
| Set the Adder object. More...
|
|
virtual std::pair< bool,
std::vector< size_t > > | read (std::istream &in, const size_t startingLineNumber, const bool tolerant, const bool debug=false) |
| Read in all the data from the given input stream. More...
|
|
std::pair< Teuchos::Tuple
< Ordinal, 3 >, bool > | readDimensions (std::istream &in, size_t &lineNumber, const bool tolerant=false) |
| Read (numRows, numCols, numNonzeros). More...
|
|
|
bool | readLine (const std::string &theLine, const size_t lineNumber, const bool tolerant) |
| Read in the data from a single line of the input stream. More...
|
|
template<class Callback, class Ordinal, class Scalar>
class Teuchos::MatrixMarket::CoordDataReader< Callback, Ordinal, Scalar, false >
Definition at line 514 of file Teuchos_MatrixMarket_CoordDataReader.hpp.
template<class Callback , class Ordinal , class Scalar >
template<class Callback , class Ordinal , class Scalar >
template<class Callback , class Ordinal , class Scalar >
template<class Callback , class Ordinal , class Scalar >
Read in the data from a single line of the input stream.
- Parameters
-
theLine | [in] The line read in from the input stream. |
adder | [in/out] The callback to invoke for adding an entry to the sparse matrix. |
lineNumber | [in] Current line number of the file. We use this for generating informative exception messages. |
tolerant | [in] Whether to parse tolerantly. |
- Returns
- In tolerant parsing mode (tolerant==true), then this method returns true if parsing the current line succeeded, else false. Otherwise, this method throws an exception (and does not invoke the adder) if parsing the current line did not succeed.
Subclasses must implement this method in order to read one entry of the sparse graph or matrix. Implementations should use the callback (adder_
) to add the entry.
- Note
- To implementers: We defer implementation of this method to subclasses, because the callback for a graph will take different arguments than the callback for a matrix. Abstracting around that using templates isn't worth the trouble. (Remember you're reading from a file and parsing strings. Virtual method call overhead isn't significant by comparison.)
Implements Teuchos::MatrixMarket::CoordDataReaderBase< Callback, Ordinal >.
Definition at line 529 of file Teuchos_MatrixMarket_CoordDataReader.hpp.
The documentation for this class was generated from the following file: