bpp-phyl3 3.0.0
BppOTransitionModelFormat.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: The Bio++ Development Group
2//
3// SPDX-License-Identifier: CECILL-2.1
4
5#ifndef BPP_PHYL_IO_BPPOTRANSITIONMODELFORMAT_H
6#define BPP_PHYL_IO_BPPOTRANSITIONMODELFORMAT_H
7
8
9#include "../Model/MixedTransitionModel.h"
11
12namespace bpp
13{
22{
23private:
24 std::unique_ptr<MixedTransitionModelInterface> readMixed_(
25 std::shared_ptr<const Alphabet> alphabet,
26 const std::string& modelDescription,
27 const std::map<size_t, std::shared_ptr<const AlignmentDataInterface>>& mData,
28 size_t nData);
29
30public:
41 BppOTransitionModelFormat(unsigned char alphabetCode, bool allowCovarions, bool allowMixed, bool allowGaps, bool verbose, int warn) :
42 BppOSubstitutionModelFormat(alphabetCode, allowCovarions, allowMixed, allowGaps, verbose, warn)
43 {}
44
47 {}
48
50 {
52 return *this;
53 }
54
56
57public:
58 std::unique_ptr<TransitionModelInterface> readTransitionModel(
59 std::shared_ptr<const Alphabet> alphabet,
60 const std::string& modelDescription,
61 const std::map<size_t, std::shared_ptr<const AlignmentDataInterface>>& mData,
62 size_t nData,
63 bool parseArguments = true);
64};
65} // end of namespace bpp.
66#endif // BPP_PHYL_IO_BPPOTRANSITIONMODELFORMAT_H
Substitution model I/O in BppO format.
BppOSubstitutionModelFormat & operator=(const BppOSubstitutionModelFormat &format)
Transition model I/O in BppO format.
std::unique_ptr< TransitionModelInterface > readTransitionModel(std::shared_ptr< const Alphabet > alphabet, const std::string &modelDescription, const std::map< size_t, std::shared_ptr< const AlignmentDataInterface > > &mData, size_t nData, bool parseArguments=true)
std::unique_ptr< MixedTransitionModelInterface > readMixed_(std::shared_ptr< const Alphabet > alphabet, const std::string &modelDescription, const std::map< size_t, std::shared_ptr< const AlignmentDataInterface > > &mData, size_t nData)
BppOTransitionModelFormat(const BppOTransitionModelFormat &format)
BppOTransitionModelFormat & operator=(const BppOTransitionModelFormat &format)
BppOTransitionModelFormat(unsigned char alphabetCode, bool allowCovarions, bool allowMixed, bool allowGaps, bool verbose, int warn)
Create a new BppOTransitionModelFormat object.
Defines the basic types of data flow nodes.