A toolkit for working with phylogenetic data.
v0.24.0
DataframeReader< T > Class Template Reference

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

Detailed Description

template<typename T = std::string>
class genesis::utils::DataframeReader< T >

Definition at line 58 of file utils/containers/dataframe/reader.hpp.

Public Member Functions

 DataframeReader (char separator_char=',')
 
 DataframeReader (CsvReader const &reader)
 
 DataframeReader (DataframeReader const &)=default
 
 DataframeReader (DataframeReader &&)=default
 
 ~DataframeReader ()=default
 
bool col_names_from_first_row () const
 
DataframeReadercol_names_from_first_row (bool value)
 
CsvReadercsv_reader ()
 
CsvReader const & csv_reader () const
 
DataframeReaderoperator= (DataframeReader const &)=default
 
DataframeReaderoperator= (DataframeReader &&)=default
 
DataframeReaderparse_value_functor (std::function< T(std::string const &)> functor)
 
Dataframe read (std::shared_ptr< BaseInputSource > source) const
 
bool row_names_from_first_col () const
 
DataframeReaderrow_names_from_first_col (bool value)
 
bool trim_whitespace () const
 
DataframeReadertrim_whitespace (bool value)
 

Constructor & Destructor Documentation

◆ DataframeReader() [1/4]

DataframeReader ( char  separator_char = ',')
inlineexplicit

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

◆ DataframeReader() [2/4]

DataframeReader ( CsvReader const &  reader)
inlineexplicit

Definition at line 71 of file utils/containers/dataframe/reader.hpp.

◆ ~DataframeReader()

~DataframeReader ( )
default

◆ DataframeReader() [3/4]

DataframeReader ( DataframeReader< T > const &  )
default

◆ DataframeReader() [4/4]

DataframeReader ( DataframeReader< T > &&  )
default

Member Function Documentation

◆ col_names_from_first_row() [1/2]

bool col_names_from_first_row ( ) const
inline

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

◆ col_names_from_first_row() [2/2]

DataframeReader& col_names_from_first_row ( bool  value)
inline

Definition at line 108 of file utils/containers/dataframe/reader.hpp.

◆ csv_reader() [1/2]

CsvReader& csv_reader ( )
inline

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

◆ csv_reader() [2/2]

CsvReader const& csv_reader ( ) const
inline

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ parse_value_functor()

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

Definition at line 141 of file utils/containers/dataframe/reader.hpp.

◆ read()

Dataframe read ( std::shared_ptr< BaseInputSource source) const
inline

Definition at line 87 of file utils/containers/dataframe/reader.hpp.

◆ row_names_from_first_col() [1/2]

bool row_names_from_first_col ( ) const
inline

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

◆ row_names_from_first_col() [2/2]

DataframeReader& row_names_from_first_col ( bool  value)
inline

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

◆ trim_whitespace() [1/2]

bool trim_whitespace ( ) const
inline

Definition at line 130 of file utils/containers/dataframe/reader.hpp.

◆ trim_whitespace() [2/2]

DataframeReader& trim_whitespace ( bool  value)
inline

Definition at line 135 of file utils/containers/dataframe/reader.hpp.


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