bpp-seq3  3.0.0
SequenceIterator.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_SEQ_SEQUENCEITERATOR_H
6 #define BPP_SEQ_SEQUENCEITERATOR_H
7 
8 
9 namespace bpp
10 {
14 template<class SequenceType>
16 {
17 public:
20 
21 public:
22  virtual std::unique_ptr<SequenceType> nextSequence() = 0;
23  virtual bool hasMoreSequences() const = 0;
24 };
25 } // end of namespace bpp.
26 #endif // BPP_SEQ_SEQUENCEITERATOR_H
Generic sequence iterator interface, allowing to loop over sequences.
virtual bool hasMoreSequences() const =0
virtual std::unique_ptr< SequenceType > nextSequence()=0
This alphabet is used to deal NumericAlphabet.