bpp-phyl3  3.0.0
bpp::AbstractIPhyloDAG Class Referenceabstract

Partial implementation of the IDAG interface. More...

#include <Bpp/Phyl/Io/IoDAG.h>

+ Inheritance diagram for bpp::AbstractIPhyloDAG:
+ Collaboration diagram for bpp::AbstractIPhyloDAG:

Public Member Functions

 AbstractIPhyloDAG ()
 
virtual ~AbstractIPhyloDAG ()
 
std::unique_ptr< PhyloDAG > readPhyloDAG (std::istream &in) const override=0
 Read a DAG from a stream. More...
 
std::unique_ptr< PhyloDAG > readPhyloDAG (const std::string &path) const override
 Read a DAG from a file. More...
 
virtual Element getElement (const std::string &elt) const
 
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 IDAG interface.

Definition at line 120 of file IoDAG.h.

Constructor & Destructor Documentation

◆ AbstractIPhyloDAG()

bpp::AbstractIPhyloDAG::AbstractIPhyloDAG ( )
inline

Definition at line 124 of file IoDAG.h.

◆ ~AbstractIPhyloDAG()

virtual bpp::AbstractIPhyloDAG::~AbstractIPhyloDAG ( )
inlinevirtual

Definition at line 125 of file IoDAG.h.

Member Function Documentation

◆ getDataType()

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

Implements bpp::IOFormat.

Definition at line 48 of file IoDAG.h.

◆ getElement()

virtual Element bpp::AbstractIPhyloDAG::getElement ( const std::string &  elt) const
inlinevirtual

Reimplemented in bpp::ExtendedNewick.

Definition at line 140 of file IoDAG.h.

◆ readPhyloDAG() [1/2]

std::unique_ptr<PhyloDAG> bpp::AbstractIPhyloDAG::readPhyloDAG ( const std::string &  path) const
inlineoverridevirtual

Read a DAG from a file.

Parameters
pathThe file path.
Returns
a new PhyloDAG object.

Implements bpp::IPhyloDAG.

Definition at line 130 of file IoDAG.h.

References readPhyloDAG().

◆ readPhyloDAG() [2/2]

std::unique_ptr<PhyloDAG> bpp::AbstractIPhyloDAG::readPhyloDAG ( std::istream &  in) const
overridepure virtual

Read a DAG from a stream.

Parameters
inThe input stream.
Returns
A new PhyloDAG object.

Implements bpp::IPhyloDAG.

Implemented in bpp::ExtendedNewick.

Referenced by readPhyloDAG().


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