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

Public Member Functions

 MatrixReader (CsvReader const &reader)
 
 MatrixReader (MatrixReader &&)=default
 
 MatrixReader (MatrixReader const &)=default
 
 MatrixReader (std::string const &separator="\t")
 
 ~MatrixReader ()=default
 
MatrixReaderconvert_value_functor (std::function< T(std::string const &)> functor)
 
CsvReadercsv_reader ()
 
CsvReader const & csv_reader () const
 
MatrixReaderoperator= (MatrixReader &&)=default
 
MatrixReaderoperator= (MatrixReader const &)=default
 
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 ( std::string const &  separator = "\t")
inlineexplicit

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

◆ MatrixReader() [2/4]

MatrixReader ( CsvReader const &  reader)
inlineexplicit

Definition at line 70 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

◆ convert_value_functor()

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

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

◆ csv_reader() [1/2]

CsvReader& csv_reader ( )
inline

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

◆ csv_reader() [2/2]

CsvReader const& csv_reader ( ) const
inline

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ read()

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

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

◆ skip_first_col() [1/2]

bool skip_first_col ( ) const
inline

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

◆ skip_first_col() [2/2]

MatrixReader& skip_first_col ( bool  value)
inline

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

◆ skip_first_row() [1/2]

bool skip_first_row ( ) const
inline

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

◆ skip_first_row() [2/2]

MatrixReader& skip_first_row ( bool  value)
inline

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


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