bpp-phyl3 3.0.0
BppORateDistributionFormat.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_BPPORATEDISTRIBUTIONFORMAT_H
6#define BPP_PHYL_IO_BPPORATEDISTRIBUTIONFORMAT_H
7
9
10
11namespace bpp
12{
27{
28private:
30
31public:
37 BppORateDistributionFormat(bool allowConstant) :
39 allowConstant_(allowConstant)
40 {}
41
43
44public:
45 std::unique_ptr<DiscreteDistributionInterface> readDiscreteDistribution(const std::string& distDescription, bool parseArguments);
46
48 OutputStream& out,
49 std::map<std::string, std::string>& globalAliases,
50 std::vector<std::string>& writtenNames) const;
51};
52} // end of namespace bpp.
53#endif // BPP_PHYL_IO_BPPORATEDISTRIBUTIONFORMAT_H
Rate Distribution I/O in BppO format.
std::unique_ptr< DiscreteDistributionInterface > readDiscreteDistribution(const std::string &distDescription, bool parseArguments)
void writeDiscreteDistribution(const DiscreteDistributionInterface &dist, OutputStream &out, std::map< std::string, std::string > &globalAliases, std::vector< std::string > &writtenNames) const
BppORateDistributionFormat(bool allowConstant)
Build a new BppORateDistributionFormat object.
Defines the basic types of data flow nodes.