bpp-popgen  2.2.0
bpp::AbstractIDataSet Class Referenceabstract

Partial implementation of the DataSet Input interface. More...

#include <Bpp/PopGen/AbstractIDataSet.h>

+ Inheritance diagram for bpp::AbstractIDataSet:
+ Collaboration diagram for bpp::AbstractIDataSet:

Public Member Functions

virtual ~AbstractIDataSet ()
 
The IDataSet interface.
virtual void read (std::istream &is, DataSet &data_set)=0 throw (Exception)
 Read a DataSet on istream. More...
 
virtual void read (const std::string &path, DataSet &data_set) throw (Exception)
 Read a DataSet from a text file. More...
 
virtual DataSetread (std::istream &is) throw (Exception)
 Read istream and return a DataSet. More...
 
virtual DataSetread (const std::string &path) throw (Exception)
 Read a text file and return a DataSet. More...
 

Detailed Description

Partial implementation of the DataSet Input interface.

Author
Sylvain Gaillard

Definition at line 55 of file AbstractIDataSet.h.

Constructor & Destructor Documentation

◆ ~AbstractIDataSet()

AbstractIDataSet::~AbstractIDataSet ( )
virtual

Definition at line 50 of file AbstractIDataSet.cpp.

Member Function Documentation

◆ read() [1/4]

virtual void bpp::AbstractIDataSet::read ( std::istream &  is,
DataSet data_set 
)
throw (Exception
)
pure virtual

◆ read() [2/4]

void AbstractIDataSet::read ( const std::string &  path,
DataSet data_set 
)
throw (Exception
)
virtual

Read a DataSet from a text file.

Implements bpp::IDataSet.

Reimplemented in bpp::PopgenlibIO, bpp::GeneMapperCsvExport, bpp::Genetix, and bpp::Genepop.

Definition at line 52 of file AbstractIDataSet.cpp.

◆ read() [3/4]

DataSet * AbstractIDataSet::read ( std::istream &  is)
throw (Exception
)
virtual

Read istream and return a DataSet.

Implements bpp::IDataSet.

Reimplemented in bpp::PopgenlibIO, bpp::GeneMapperCsvExport, bpp::Genetix, and bpp::Genepop.

Definition at line 59 of file AbstractIDataSet.cpp.

◆ read() [4/4]

DataSet * AbstractIDataSet::read ( const std::string &  path)
throw (Exception
)
virtual

Read a text file and return a DataSet.

Implements bpp::IDataSet.

Reimplemented in bpp::PopgenlibIO, bpp::GeneMapperCsvExport, bpp::Genetix, and bpp::Genepop.

Definition at line 66 of file AbstractIDataSet.cpp.


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