bpp-phyl3  3.0.0
bpp::IFrequencySet Class Referenceabstract

General interface for distance matrix readers. More...

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

+ Inheritance diagram for bpp::IFrequencySet:
+ Collaboration diagram for bpp::IFrequencySet:

Public Member Functions

 IFrequencySet ()
 
virtual ~IFrequencySet ()
 
virtual std::unique_ptr< FrequencySetInterfacereadFrequencySet (std::shared_ptr< const Alphabet > alphabet, const std::string &freqDescription, const std::map< size_t, std::shared_ptr< const AlignmentDataInterface >> &mData, size_t nData, bool parseArguments=true)=0
 Read a frequencies set from a string. More...
 
virtual const std::map< std::string, std::string > & getUnparsedArguments () const =0
 
virtual const std::string getDataType () const
 
virtual const std::string getFormatName () const=0
 
virtual const std::string getFormatDescription () const=0
 

Detailed Description

General interface for distance matrix readers.

Definition at line 38 of file IoFrequencySet.h.

Constructor & Destructor Documentation

◆ IFrequencySet()

bpp::IFrequencySet::IFrequencySet ( )
inline

Definition at line 42 of file IoFrequencySet.h.

◆ ~IFrequencySet()

virtual bpp::IFrequencySet::~IFrequencySet ( )
inlinevirtual

Definition at line 43 of file IoFrequencySet.h.

Member Function Documentation

◆ getDataType()

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

Implements bpp::IOFormat.

Definition at line 32 of file IoFrequencySet.h.

◆ getUnparsedArguments()

virtual const std::map<std::string, std::string>& bpp::IFrequencySet::getUnparsedArguments ( ) const
pure virtual
Returns
The arguments and their unparsed values from the last call of the read function, if there are any.

Implemented in bpp::BppOFrequencySetFormat.

◆ readFrequencySet()

virtual std::unique_ptr<FrequencySetInterface> bpp::IFrequencySet::readFrequencySet ( std::shared_ptr< const Alphabet alphabet,
const std::string &  freqDescription,
const std::map< size_t, std::shared_ptr< const AlignmentDataInterface >> &  mData,
size_t  nData,
bool  parseArguments = true 
)
pure virtual

Read a frequencies set from a string.

Parameters
alphabetThe alphabet to use in the model.
freqDescriptionA string describing the frequencies set.
mDataA map towards pointers of SiteContainer with the data to use to initialize frequency parameters
nDataNumber of the SiteContainer in the mData. Can be set to 0, if none assigned.
parseArgumentsAttempt to parse function arguments. If not, only store them and use default values instead.
Returns
A new FrequencySet object according to options specified.
Exceptions
Exceptionif an error occurred.

Implemented in bpp::BppOFrequencySetFormat.


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