bpp-phyl  2.1.0
 All Classes Namespaces Files Functions Variables Friends Pages
bpp::AbstractIMultiTree Class Referenceabstract

Partial implementation of the IMultiTree interface. More...

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

+ Inheritance diagram for bpp::AbstractIMultiTree:
+ Collaboration diagram for bpp::AbstractIMultiTree:

Public Member Functions

 AbstractIMultiTree ()
 
virtual ~AbstractIMultiTree ()
 
virtual void read (std::istream &in, std::vector< Tree * > &trees) const =0 throw (Exception)
 Read trees from a stream. More...
 
virtual void read (const std::string &path, std::vector< Tree * > &trees) const throw (Exception)
 Read trees from a file. More...
 
virtual const std::string getDataType () const
 

Detailed Description

Partial implementation of the IMultiTree interface.

Definition at line 253 of file IoTree.h.

Constructor & Destructor Documentation

bpp::AbstractIMultiTree::AbstractIMultiTree ( )
inline

Definition at line 257 of file IoTree.h.

virtual bpp::AbstractIMultiTree::~AbstractIMultiTree ( )
inlinevirtual

Definition at line 258 of file IoTree.h.

Member Function Documentation

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

Implements bpp::IOFormat.

Definition at line 68 of file IoTree.h.

virtual void bpp::AbstractIMultiTree::read ( std::istream &  in,
std::vector< Tree * > &  trees 
) const throw (Exception)
pure virtual

Read trees from a stream.

Parameters
inThe input stream.
treesThe output trees container.
Exceptions
ExceptionIf an error occured.

Implements bpp::IMultiTree.

Implemented in bpp::Nhx, bpp::Newick, and bpp::NexusIOTree.

Referenced by bpp::NexusIOTree::read(), bpp::Newick::read(), bpp::Nhx::read(), and read().

virtual void bpp::AbstractIMultiTree::read ( const std::string &  path,
std::vector< Tree * > &  trees 
) const throw (Exception)
inlinevirtual

Read trees from a file.

Parameters
pathThe file path.
treesThe output trees container.
Exceptions
ExceptionIf an error occured.

Implements bpp::IMultiTree.

Reimplemented in bpp::Nhx, bpp::Newick, and bpp::NexusIOTree.

Definition at line 262 of file IoTree.h.

References read().


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