A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MatrixReader< T > Class Template Reference

#include <genesis/utils/containers/matrix/reader.hpp>

Detailed Description

template<typename T>
class genesis::utils::MatrixReader< T >

Definition at line 53 of file utils/containers/matrix/reader.hpp.

Public Member Functions

 MatrixReader (char separator_char= '\t')
 
 MatrixReader (CsvReader const &reader)
 
 MatrixReader (MatrixReader const &)=default
 
 MatrixReader (MatrixReader &&)=default
 
 ~MatrixReader ()=default
 
CsvReadercsv_reader ()
 
CsvReader const & csv_reader () const
 
Matrix< T > from_file (std::string const &fn) const
 
Matrix< T > from_stream (std::istream &is) const
 
Matrix< T > from_string (std::string const &fs) const
 
MatrixReaderoperator= (MatrixReader const &)=default
 
MatrixReaderoperator= (MatrixReader &&)=default
 
MatrixReaderparse_value_functor (std::function< T(std::string const &)> functor)
 
bool skip_first_col () const
 
MatrixReaderskip_first_col (bool value)
 
bool skip_first_row () const
 
MatrixReaderskip_first_row (bool value)
 

Constructor & Destructor Documentation

MatrixReader ( char  separator_char = '\t')
inline

Definition at line 61 of file utils/containers/matrix/reader.hpp.

MatrixReader ( CsvReader const &  reader)
inline

Definition at line 66 of file utils/containers/matrix/reader.hpp.

~MatrixReader ( )
default
MatrixReader ( MatrixReader< T > const &  )
default
MatrixReader ( MatrixReader< T > &&  )
default

Member Function Documentation

CsvReader& csv_reader ( )
inline

Definition at line 126 of file utils/containers/matrix/reader.hpp.

CsvReader const& csv_reader ( ) const
inline

Definition at line 131 of file utils/containers/matrix/reader.hpp.

Matrix<T> from_file ( std::string const &  fn) const
inline

Definition at line 88 of file utils/containers/matrix/reader.hpp.

Matrix<T> from_stream ( std::istream &  is) const
inline

Definition at line 82 of file utils/containers/matrix/reader.hpp.

Matrix<T> from_string ( std::string const &  fs) const
inline

Definition at line 94 of file utils/containers/matrix/reader.hpp.

MatrixReader& operator= ( MatrixReader< T > const &  )
default
MatrixReader& operator= ( MatrixReader< T > &&  )
default
MatrixReader& parse_value_functor ( std::function< T(std::string const &)>  functor)
inline

Definition at line 136 of file utils/containers/matrix/reader.hpp.

bool skip_first_col ( ) const
inline

Definition at line 104 of file utils/containers/matrix/reader.hpp.

MatrixReader& skip_first_col ( bool  value)
inline

Definition at line 114 of file utils/containers/matrix/reader.hpp.

bool skip_first_row ( ) const
inline

Definition at line 109 of file utils/containers/matrix/reader.hpp.

MatrixReader& skip_first_row ( bool  value)
inline

Definition at line 120 of file utils/containers/matrix/reader.hpp.


The documentation for this class was generated from the following file: