bpp-seq-omics  2.4.1
bpp::CsvStatisticsOutputIterationListener Class Reference

Iteration listener that works with a SequenceStatisticsMafIterator, enabling output of results in a file in CSv format. More...

#include <Bpp/Seq/Io/Maf/IterationListener.h>

+ Inheritance diagram for bpp::CsvStatisticsOutputIterationListener:
+ Collaboration diagram for bpp::CsvStatisticsOutputIterationListener:

Public Member Functions

 CsvStatisticsOutputIterationListener (SequenceStatisticsMafIterator *iterator, const std::string &refSpecies, OutputStream *output, const std::string &sep="\t")
 
 CsvStatisticsOutputIterationListener (const CsvStatisticsOutputIterationListener &listener)
 
CsvStatisticsOutputIterationListeneroperator= (const CsvStatisticsOutputIterationListener &listener)
 
virtual ~CsvStatisticsOutputIterationListener ()
 
virtual void iterationStarts ()
 
virtual void iterationMoves (const MafBlock &currentBlock)
 
virtual void iterationStops ()
 

Protected Attributes

SequenceStatisticsMafIteratorstatsIterator_
 

Private Attributes

OutputStreamoutput_
 
std::string sep_
 
std::string refSpecies_
 

Detailed Description

Iteration listener that works with a SequenceStatisticsMafIterator, enabling output of results in a file in CSv format.

Definition at line 94 of file IterationListener.h.

Constructor & Destructor Documentation

◆ CsvStatisticsOutputIterationListener() [1/2]

bpp::CsvStatisticsOutputIterationListener::CsvStatisticsOutputIterationListener ( SequenceStatisticsMafIterator iterator,
const std::string &  refSpecies,
OutputStream output,
const std::string &  sep = "\t" 
)
inline

Definition at line 103 of file IterationListener.h.

◆ CsvStatisticsOutputIterationListener() [2/2]

bpp::CsvStatisticsOutputIterationListener::CsvStatisticsOutputIterationListener ( const CsvStatisticsOutputIterationListener listener)
inline

Definition at line 106 of file IterationListener.h.

◆ ~CsvStatisticsOutputIterationListener()

virtual bpp::CsvStatisticsOutputIterationListener::~CsvStatisticsOutputIterationListener ( )
inlinevirtual

Definition at line 118 of file IterationListener.h.

Member Function Documentation

◆ iterationMoves()

void CsvStatisticsOutputIterationListener::iterationMoves ( const MafBlock currentBlock)
virtual

◆ iterationStarts()

void CsvStatisticsOutputIterationListener::iterationStarts ( )
virtual

Implements bpp::IterationListener.

Definition at line 48 of file IterationListener.cpp.

◆ iterationStops()

virtual void bpp::CsvStatisticsOutputIterationListener::iterationStops ( )
inlinevirtual

Implements bpp::IterationListener.

Definition at line 123 of file IterationListener.h.

◆ operator=()

CsvStatisticsOutputIterationListener& bpp::CsvStatisticsOutputIterationListener::operator= ( const CsvStatisticsOutputIterationListener listener)
inline

Member Data Documentation

◆ output_

OutputStream* bpp::CsvStatisticsOutputIterationListener::output_
private

Definition at line 98 of file IterationListener.h.

Referenced by operator=().

◆ refSpecies_

std::string bpp::CsvStatisticsOutputIterationListener::refSpecies_
private

Definition at line 100 of file IterationListener.h.

Referenced by operator=().

◆ sep_

std::string bpp::CsvStatisticsOutputIterationListener::sep_
private

Definition at line 99 of file IterationListener.h.

Referenced by operator=().

◆ statsIterator_

SequenceStatisticsMafIterator* bpp::AbstractStatisticsOutputIterationListener::statsIterator_
protectedinherited

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