bpp-seq3  3.0.0
SiteIterator.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_SITEITERATOR_H
6 #define BPP_SEQ_SITEITERATOR_H
7 
8 
9 namespace bpp
10 {
14 template<class SiteType>
16 {
17 public:
20 
21 public:
22  virtual SiteType& nextSite() = 0;
23  virtual bool hasMoreSites() const = 0;
24 };
25 } // end of namespace bpp.
26 #endif // BPP_SEQ_SITEITERATOR_H
Generic site iterator interface, allowing to loop over sites.
Definition: SiteIterator.h:16
virtual SiteType & nextSite()=0
virtual bool hasMoreSites() const =0
This alphabet is used to deal NumericAlphabet.