
Definition at line 22 of file TextFileReader.hpp.
Public Member Functions | |
| TextFileReader (std::istream *in) | |
| Construct new reader from input stream, where all columns are of interest. | |
| TextFileReader (const std::string &file) | |
| Construct new reader from file, where all columns are of interest. | |
| TextFileReader (std::istream *in, unsigned int col) | |
| Construct new reader from input stream, where only a single column is of interest. | |
| TextFileReader (const std::string &file, unsigned int col) | |
| Construct new reader from file, where only a single column is of interest. | |
| TextFileReader (std::istream *in, const std::vector< unsigned int > &cols) | |
| Construct new reader from input stream, where only a subset of columns are of interest. | |
| TextFileReader (const std::string &file, const std::vector< unsigned int > &cols) | |
| Construct new reader from file, where only a subset of columns are of interest. | |
| ~TextFileReader () | |
| Destructor. | |
| virtual unsigned int | read (double *into) |
| Read next value. | |
| virtual unsigned int | read (indii::ml::aux::vector *into) |
| Read next values into vector. | |
| virtual unsigned int | read (indii::ml::aux::matrix *into) |
| Read next values into matrix. | |
| virtual unsigned int | read (indii::ml::aux::symmetric_matrix *into) |
| Read next values into symmetric matrix. | |
| TextFileReader | ( | std::istream * | in | ) |
Construct new reader from input stream, where all columns are of interest.
| in | Stream from which to read. |
Definition at line 7 of file TextFileReader.cpp.
| TextFileReader | ( | const std::string & | file | ) |
Construct new reader from file, where all columns are of interest.
| file | Name of file from which to read. |
Definition at line 11 of file TextFileReader.cpp.
| TextFileReader | ( | std::istream * | in, | |
| unsigned int | col | |||
| ) |
Construct new reader from input stream, where only a single column is of interest.
| in | Stream from which to read. | |
| col | Index of column of interest. |
Definition at line 15 of file TextFileReader.cpp.
| TextFileReader | ( | const std::string & | file, | |
| unsigned int | col | |||
| ) |
Construct new reader from file, where only a single column is of interest.
| file | Name of file from which to read. | |
| col | Index of column of interest. |
Definition at line 20 of file TextFileReader.cpp.
| TextFileReader | ( | std::istream * | in, | |
| const std::vector< unsigned int > & | cols | |||
| ) |
Construct new reader from input stream, where only a subset of columns are of interest.
| in | Stream from which to read. | |
| cols | Set of indices giving columns of interest. |
Definition at line 25 of file TextFileReader.cpp.
| TextFileReader | ( | const std::string & | file, | |
| const std::vector< unsigned int > & | cols | |||
| ) |
Construct new reader from file, where only a subset of columns are of interest.
| file | Name of file from which to read. | |
| cols | Set of indices giving columns of interest. |
Definition at line 30 of file TextFileReader.cpp.
| ~TextFileReader | ( | ) |
| unsigned int read | ( | double * | into | ) | [virtual] |
Read next value.
| into | Double into which to read the value. |
into. If a particular column or subset of columns of interest have been specified, all others are skipped during the reading.
Implements Reader.
Definition at line 39 of file TextFileReader.cpp.
| unsigned int read | ( | indii::ml::aux::vector * | into | ) | [virtual] |
Read next values into vector.
| into | Vector into which to read the values. |
into.size() values are read from the input stream into into. If a particular column or subset of columns of interest have been specified, all others are skipped during the reading.
Implements Reader.
Definition at line 62 of file TextFileReader.cpp.
| unsigned int read | ( | indii::ml::aux::matrix * | into | ) | [virtual] |
Read next values into matrix.
| into | Matrix into which to read the values. |
into.size1() * into.size2() values are read from the input stream into into in column-wise fashion. If a particular column or subset of columns of interest have been specified, all others are skipped during the reading.
Implements Reader.
Definition at line 74 of file TextFileReader.cpp.
| unsigned int read | ( | indii::ml::aux::symmetric_matrix * | into | ) | [virtual] |
Read next values into symmetric matrix.
| into | Matrix into which to read the values. |
0.5 * (into.size1() * into.size1() + into.size1()) values are read from the input stream into the lower triangle of into in column-wise fashion. If a particular column or subset of columns of interest have been specified, all others are skipped during the reading.
Implements Reader.
Definition at line 90 of file TextFileReader.cpp.
1.5.3