bpp-seq3  3.0.0
bpp::StreamSequenceIterator Class Reference

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

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

+ Inheritance diagram for bpp::StreamSequenceIterator:
+ Collaboration diagram for bpp::StreamSequenceIterator:

Public Member Functions

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

Private Member Functions

 StreamSequenceIterator (const StreamSequenceIterator &ssi)
 
StreamSequenceIteratoroperator= (const StreamSequenceIterator &ssi)
 

Private Attributes

const Alphabetalphabet_
 
const ISequenceStreamseqStream_
 
std::istream * stream_
 
BasicSequencenextSeq_
 

Detailed Description

A sequence iterator based on a sequence stream.

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

Definition at line 58 of file StreamSequenceIterator.h.

Constructor & Destructor Documentation

◆ StreamSequenceIterator() [1/2]

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

◆ ~StreamSequenceIterator()

virtual bpp::StreamSequenceIterator::~StreamSequenceIterator ( )
inlinevirtual

Definition at line 70 of file StreamSequenceIterator.h.

◆ StreamSequenceIterator() [2/2]

bpp::StreamSequenceIterator::StreamSequenceIterator ( const StreamSequenceIterator ssi)
inlineprivate

Definition at line 74 of file StreamSequenceIterator.h.

Member Function Documentation

◆ hasMoreSequences()

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

Implements bpp::SequenceIterator.

Definition at line 92 of file StreamSequenceIterator.h.

References nextSeq_.

◆ nextSequence()

Sequence * StreamSequenceIterator::nextSequence ( )
virtual

◆ operator=()

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

Definition at line 80 of file StreamSequenceIterator.h.

References alphabet_, nextSeq_, seqStream_, and stream_.

Member Data Documentation

◆ alphabet_

const Alphabet* bpp::StreamSequenceIterator::alphabet_
private

Definition at line 62 of file StreamSequenceIterator.h.

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

◆ nextSeq_

BasicSequence* bpp::StreamSequenceIterator::nextSeq_
private

◆ seqStream_

const ISequenceStream* bpp::StreamSequenceIterator::seqStream_
private

Definition at line 63 of file StreamSequenceIterator.h.

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

◆ stream_

std::istream* bpp::StreamSequenceIterator::stream_
private

Definition at line 64 of file StreamSequenceIterator.h.

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


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