bpp-seq3  3.0.0
bpp::AbstractIDistanceMatrix Class Referenceabstract

Partial implementation of the IDistanceMatrix interface. More...

#include <Bpp/Seq/Io/IoDistanceMatrix.h>

+ Inheritance diagram for bpp::AbstractIDistanceMatrix:
+ Collaboration diagram for bpp::AbstractIDistanceMatrix:

Public Member Functions

 AbstractIDistanceMatrix ()
 
virtual ~AbstractIDistanceMatrix ()
 
virtual std::unique_ptr< DistanceMatrixreadDistanceMatrix (const std::string &path) const
 Read a distance matrix from a file. More...
 
virtual std::unique_ptr< DistanceMatrixreadDistanceMatrix (std::istream &in) const =0
 Read a distance matrix from a stream. More...
 
virtual const std::string getDataType () const
 
virtual const std::string getFormatName () const=0
 
virtual const std::string getFormatDescription () const=0
 

Detailed Description

Partial implementation of the IDistanceMatrix interface.

Definition at line 94 of file IoDistanceMatrix.h.

Constructor & Destructor Documentation

◆ AbstractIDistanceMatrix()

bpp::AbstractIDistanceMatrix::AbstractIDistanceMatrix ( )
inline

Definition at line 98 of file IoDistanceMatrix.h.

◆ ~AbstractIDistanceMatrix()

virtual bpp::AbstractIDistanceMatrix::~AbstractIDistanceMatrix ( )
inlinevirtual

Definition at line 99 of file IoDistanceMatrix.h.

Member Function Documentation

◆ getDataType()

virtual const std::string bpp::IODistanceMatrix::getDataType ( ) const
inlinevirtualinherited

Implements bpp::IOFormat.

Definition at line 28 of file IoDistanceMatrix.h.

◆ readDistanceMatrix() [1/2]

virtual std::unique_ptr<DistanceMatrix> bpp::AbstractIDistanceMatrix::readDistanceMatrix ( const std::string &  path) const
inlinevirtual

Read a distance matrix from a file.

Parameters
pathThe file path.
Returns
A new distance matrix object.
Exceptions
ExceptionIf an error occurred.

Implements bpp::IDistanceMatrix.

Reimplemented in bpp::PhylipDistanceMatrixFormat.

Definition at line 102 of file IoDistanceMatrix.h.

Referenced by bpp::PhylipDistanceMatrixFormat::readDistanceMatrix().

◆ readDistanceMatrix() [2/2]

virtual std::unique_ptr<DistanceMatrix> bpp::AbstractIDistanceMatrix::readDistanceMatrix ( std::istream &  in) const
pure virtual

Read a distance matrix from a stream.

Parameters
inThe input stream.
Returns
A new distance matrix object.
Exceptions
ExceptionIf an error occurred.

Implements bpp::IDistanceMatrix.

Implemented in bpp::PhylipDistanceMatrixFormat.


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