bpp-core3  3.0.0
bpp::BppODiscreteDistributionFormat Class Reference

Discrete Distribution I/O in BppO format. More...

#include <Bpp/Io/BppODiscreteDistributionFormat.h>

+ Inheritance diagram for bpp::BppODiscreteDistributionFormat:
+ Collaboration diagram for bpp::BppODiscreteDistributionFormat:

Public Member Functions

 BppODiscreteDistributionFormat (bool verbose=true)
 
virtual ~BppODiscreteDistributionFormat ()
 
const std::string getFormatName () const
 Get the name of the file format. More...
 
const std::string getFormatDescription () const
 Get a description of the file format. More...
 
std::unique_ptr< DiscreteDistributionInterfacereadDiscreteDistribution (const std::string &distDescription, bool parseArguments=true)
 Read a discrete distribution from a string. More...
 
const std::map< std::string, std::string > & getUnparsedArguments () const
 
void writeDiscreteDistribution (const DiscreteDistributionInterface &dist, OutputStream &out, std::map< std::string, std::string > &globalAliases, std::vector< std::string > &writtenNames) const
 Write a discrete distribution to a stream. More...
 
virtual const std::string getDataType () const
 Get the type of data this format deals with. More...
 

Protected Member Functions

void initialize_ (DiscreteDistributionInterface &rDist)
 Set parameter initial values of a given distribution according to options. More...
 

Protected Attributes

bool verbose_
 
std::map< std::string, std::string > unparsedArguments_
 

Detailed Description

Discrete Distribution I/O in BppO format.

Creates a new discrete distribution object according to distribution description syntax (see the Bio++ Progam Suite manual for a detailed description of this syntax).

Definition at line 21 of file BppODiscreteDistributionFormat.h.

Constructor & Destructor Documentation

◆ BppODiscreteDistributionFormat()

bpp::BppODiscreteDistributionFormat::BppODiscreteDistributionFormat ( bool  verbose = true)
inline

Definition at line 30 of file BppODiscreteDistributionFormat.h.

◆ ~BppODiscreteDistributionFormat()

virtual bpp::BppODiscreteDistributionFormat::~BppODiscreteDistributionFormat ( )
inlinevirtual

Definition at line 31 of file BppODiscreteDistributionFormat.h.

Member Function Documentation

◆ getDataType()

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

Get the type of data this format deals with.

Returns
The type of data.

Implements bpp::IOFormat.

Definition at line 27 of file IoDiscreteDistribution.h.

◆ getFormatDescription()

const std::string bpp::BppODiscreteDistributionFormat::getFormatDescription ( ) const
inlinevirtual

Get a description of the file format.

Returns
A description of the format implemented.

Implements bpp::IOFormat.

Definition at line 36 of file BppODiscreteDistributionFormat.h.

References readDiscreteDistribution().

◆ getFormatName()

const std::string bpp::BppODiscreteDistributionFormat::getFormatName ( ) const
inlinevirtual

Get the name of the file format.

Returns
The name of the format implemented.

Implements bpp::IOFormat.

Definition at line 34 of file BppODiscreteDistributionFormat.h.

◆ getUnparsedArguments()

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

Implements bpp::IDiscreteDistribution.

Definition at line 40 of file BppODiscreteDistributionFormat.h.

References initialize_(), unparsedArguments_, and writeDiscreteDistribution().

Referenced by readDiscreteDistribution().

◆ initialize_()

◆ readDiscreteDistribution()

unique_ptr< DiscreteDistributionInterface > BppODiscreteDistributionFormat::readDiscreteDistribution ( const std::string &  distrDescription,
bool  parseArguments = true 
)
virtual

◆ writeDiscreteDistribution()

void BppODiscreteDistributionFormat::writeDiscreteDistribution ( const DiscreteDistributionInterface dist,
OutputStream out,
std::map< std::string, std::string > &  globalAliases,
std::vector< std::string > &  writtenNames 
) const
virtual

Member Data Documentation

◆ unparsedArguments_

std::map<std::string, std::string> bpp::BppODiscreteDistributionFormat::unparsedArguments_
protected

Definition at line 27 of file BppODiscreteDistributionFormat.h.

Referenced by getUnparsedArguments().

◆ verbose_

bool bpp::BppODiscreteDistributionFormat::verbose_
protected

Definition at line 26 of file BppODiscreteDistributionFormat.h.


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