bpp-seq3  3.0.0
bpp::AbstractODistanceMatrix Class Referenceabstract

Partial implementation of the ODistanceMatrix interface. More...

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

+ Inheritance diagram for bpp::AbstractODistanceMatrix:
+ Collaboration diagram for bpp::AbstractODistanceMatrix:

Public Member Functions

 AbstractODistanceMatrix ()
 
virtual ~AbstractODistanceMatrix ()
 
virtual void writeDistanceMatrix (const DistanceMatrix &dist, const std::string &path, bool overwrite) const
 Write a distance matrix to a file. More...
 
virtual void writeDistanceMatrix (const DistanceMatrix &dist, std::ostream &out) const =0
 Write a distance matrix to 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 ODistanceMatrix interface.

Definition at line 115 of file IoDistanceMatrix.h.

Constructor & Destructor Documentation

◆ AbstractODistanceMatrix()

bpp::AbstractODistanceMatrix::AbstractODistanceMatrix ( )
inline

Definition at line 119 of file IoDistanceMatrix.h.

◆ ~AbstractODistanceMatrix()

virtual bpp::AbstractODistanceMatrix::~AbstractODistanceMatrix ( )
inlinevirtual

Definition at line 120 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.

◆ writeDistanceMatrix() [1/2]

virtual void bpp::AbstractODistanceMatrix::writeDistanceMatrix ( const DistanceMatrix dist,
const std::string &  path,
bool  overwrite 
) const
inlinevirtual

Write a distance matrix to a file.

Parameters
distA distance matrix object.
pathThe file path.
overwriteTell if existing file must be overwritten. Otherwise append to the file.
Exceptions
ExceptionIf an error occurred.

Implements bpp::ODistanceMatrix.

Reimplemented in bpp::PhylipDistanceMatrixFormat.

Definition at line 123 of file IoDistanceMatrix.h.

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

◆ writeDistanceMatrix() [2/2]

virtual void bpp::AbstractODistanceMatrix::writeDistanceMatrix ( const DistanceMatrix dist,
std::ostream &  out 
) const
pure virtual

Write a distance matrix to a stream.

Parameters
distA distance matrix object.
outThe output stream.
Exceptions
ExceptionIf an error occurred.

Implements bpp::ODistanceMatrix.

Implemented in bpp::PhylipDistanceMatrixFormat.


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