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

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

Detailed Description

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

Definition at line 53 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
 
CsvReadercsv_reader ()
 
CsvReader const & csv_reader () const
 
Dataframe< T > from_file (std::string const &fn) const
 
Dataframe< T > from_stream (std::istream &is) const
 
Dataframe< T > from_string (std::string const &fs) const
 
bool names_from_first_col () const
 
DataframeReadernames_from_first_col (bool value)
 
bool names_from_first_row () const
 
DataframeReadernames_from_first_row (bool value)
 
DataframeReaderoperator= (DataframeReader const &)=default
 
DataframeReaderoperator= (DataframeReader &&)=default
 
DataframeReaderparse_value_functor (std::function< T(std::string const &)> functor)
 

Constructor & Destructor Documentation

DataframeReader ( char  separator_char = ',')
inline

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

DataframeReader ( CsvReader const &  reader)
inline

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

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

Member Function Documentation

CsvReader& csv_reader ( )
inline

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

CsvReader const& csv_reader ( ) const
inline

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

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

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

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

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

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

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

bool names_from_first_col ( ) const
inline

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

DataframeReader& names_from_first_col ( bool  value)
inline

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

bool names_from_first_row ( ) const
inline

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

DataframeReader& names_from_first_row ( bool  value)
inline

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

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

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


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