A library for working with phylogenetic and population genetic data.
v0.27.0
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 54 of file utils/containers/matrix/reader.hpp.

Public Member Functions

 MatrixReader (char separator_char='\t')
 
 MatrixReader (CsvReader const &reader)
 
 MatrixReader (MatrixReader &&)=default
 
 MatrixReader (MatrixReader const &)=default
 
 ~MatrixReader ()=default
 
CsvReadercsv_reader ()
 
CsvReader const & csv_reader () const
 
MatrixReaderoperator= (MatrixReader &&)=default
 
MatrixReaderoperator= (MatrixReader const &)=default
 
MatrixReaderparse_value_functor (std::function< T(std::string const &)> functor)
 
Matrix< T > read (std::shared_ptr< BaseInputSource > source) const
 
bool skip_first_col () const
 
MatrixReaderskip_first_col (bool value)
 
bool skip_first_row () const
 
MatrixReaderskip_first_row (bool value)
 

Constructor & Destructor Documentation

◆ MatrixReader() [1/4]

MatrixReader ( char  separator_char = '\t')
inlineexplicit

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

◆ MatrixReader() [2/4]

MatrixReader ( CsvReader const &  reader)
inlineexplicit

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

◆ ~MatrixReader()

~MatrixReader ( )
default

◆ MatrixReader() [3/4]

MatrixReader ( MatrixReader< T > const &  )
default

◆ MatrixReader() [4/4]

MatrixReader ( MatrixReader< T > &&  )
default

Member Function Documentation

◆ csv_reader() [1/2]

CsvReader& csv_reader ( )
inline

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

◆ csv_reader() [2/2]

CsvReader const& csv_reader ( ) const
inline

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

◆ operator=() [1/2]

MatrixReader& operator= ( MatrixReader< T > &&  )
default

◆ operator=() [2/2]

MatrixReader& operator= ( MatrixReader< T > const &  )
default

◆ parse_value_functor()

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

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

◆ read()

Matrix<T> read ( std::shared_ptr< BaseInputSource source) const
inline

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

◆ skip_first_col() [1/2]

bool skip_first_col ( ) const
inline

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

◆ skip_first_col() [2/2]

MatrixReader& skip_first_col ( bool  value)
inline

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

◆ skip_first_row() [1/2]

bool skip_first_row ( ) const
inline

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

◆ skip_first_row() [2/2]

MatrixReader& skip_first_row ( bool  value)
inline

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


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