42 #include "../SymbolListTools.h"
96 size_t position =
static_cast<size_t>(current + 1);
99 return static_cast<int>(position);
104 int position = current - 1;
131 size_t position =
static_cast<size_t>(current + 1);
134 return static_cast<int>(position);
139 int position = current - 1;
Partial implementation of the SiteIterator interface, allowing to loop over a site container.
const SiteContainer * sites_
AbstractSiteContainerIterator(const SiteContainer &sites)
virtual size_t getNumberOfSites() const =0
Get the number of aligned positions in the container.
CompleteSiteContainerIterator(const SiteContainer &sites)
bool hasMoreSites() const
int previousCompleteSitePosition(int current) const
int nextCompleteSitePosition(int current) const
int previousSiteWithoutGapPosition(int current) const
NoGapSiteContainerIterator(const SiteContainer &sites)
int nextSiteWithoutGapPosition(int current) const
bool hasMoreSites() const
bool hasMoreSites() const
SimpleSiteContainerIterator(const SiteContainer &sites)
The SiteContainer interface.
virtual const Site & getSite(size_t siteIndex) const =0
Get a site from the container.
This alphabet is used to deal NumericAlphabet.