bpp-seq3  3.0.0
bpp::StreamSequenceWithQualityIterator Class Reference

A sequence iterator based on a sequence stream. More...

#include <Bpp/Seq/Io/StreamSequenceIterator.h>

+ Inheritance diagram for bpp::StreamSequenceWithQualityIterator:
+ Collaboration diagram for bpp::StreamSequenceWithQualityIterator:

Public Member Functions

 StreamSequenceWithQualityIterator (ISequenceStream &seqStream, std::istream &stream, const Alphabet *alphabet)
 
virtual ~StreamSequenceWithQualityIterator ()
 
virtual SequenceWithQualitynextSequence ()
 
virtual bool hasMoreSequences () const
 

Private Member Functions

 StreamSequenceWithQualityIterator (const StreamSequenceWithQualityIterator &ssi)
 
StreamSequenceWithQualityIteratoroperator= (const StreamSequenceWithQualityIterator &ssi)
 

Private Attributes

const Alphabetalphabet_
 
const ISequenceStreamseqStream_
 
std::istream * stream_
 
SequenceWithQualitynextSeq_
 

Detailed Description

A sequence iterator based on a sequence stream.

This iterator uses a bpp::SequenceWithQuality object for storing sequences.

Definition at line 100 of file StreamSequenceIterator.h.

Constructor & Destructor Documentation

◆ StreamSequenceWithQualityIterator() [1/2]

StreamSequenceWithQualityIterator::StreamSequenceWithQualityIterator ( ISequenceStream seqStream,
std::istream &  stream,
const Alphabet alphabet 
)

◆ ~StreamSequenceWithQualityIterator()

virtual bpp::StreamSequenceWithQualityIterator::~StreamSequenceWithQualityIterator ( )
inlinevirtual

Definition at line 112 of file StreamSequenceIterator.h.

◆ StreamSequenceWithQualityIterator() [2/2]

bpp::StreamSequenceWithQualityIterator::StreamSequenceWithQualityIterator ( const StreamSequenceWithQualityIterator ssi)
inlineprivate

Definition at line 116 of file StreamSequenceIterator.h.

Member Function Documentation

◆ hasMoreSequences()

virtual bool bpp::StreamSequenceWithQualityIterator::hasMoreSequences ( ) const
inlinevirtual

Implements bpp::SequenceIterator.

Definition at line 134 of file StreamSequenceIterator.h.

References nextSeq_.

◆ nextSequence()

SequenceWithQuality * StreamSequenceWithQualityIterator::nextSequence ( )
virtual

◆ operator=()

StreamSequenceWithQualityIterator& bpp::StreamSequenceWithQualityIterator::operator= ( const StreamSequenceWithQualityIterator ssi)
inlineprivate

Definition at line 122 of file StreamSequenceIterator.h.

References alphabet_, nextSeq_, seqStream_, and stream_.

Member Data Documentation

◆ alphabet_

const Alphabet* bpp::StreamSequenceWithQualityIterator::alphabet_
private

Definition at line 104 of file StreamSequenceIterator.h.

Referenced by nextSequence(), and operator=().

◆ nextSeq_

SequenceWithQuality* bpp::StreamSequenceWithQualityIterator::nextSeq_
private

◆ seqStream_

const ISequenceStream* bpp::StreamSequenceWithQualityIterator::seqStream_
private

◆ stream_

std::istream* bpp::StreamSequenceWithQualityIterator::stream_
private

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