bpp-seq3
3.0.0
|
Loop over all sites without gaps in a SiteContainer. More...
#include <Bpp/Seq/Container/SiteContainerIterator.h>
Public Member Functions | |
NoGapSiteContainerIterator (const SiteContainer &sites) | |
virtual | ~NoGapSiteContainerIterator () |
const Site * | nextSite () |
bool | hasMoreSites () const |
int | nextSiteWithoutGapPosition (int current) const |
int | previousSiteWithoutGapPosition (int current) const |
Protected Attributes | |
const SiteContainer * | sites_ |
int | currentPosition_ |
Loop over all sites without gaps in a SiteContainer.
Definition at line 95 of file SiteContainerIterator.h.
NoGapSiteContainerIterator::NoGapSiteContainerIterator | ( | const SiteContainer & | sites | ) |
Definition at line 77 of file SiteContainerIterator.cpp.
References bpp::AbstractSiteContainerIterator::currentPosition_, and nextSiteWithoutGapPosition().
|
inlinevirtual |
Definition at line 99 of file SiteContainerIterator.h.
|
virtual |
Implements bpp::ConstSiteIterator.
Definition at line 89 of file SiteContainerIterator.cpp.
References bpp::AlignedValuesContainer::getNumberOfSites(), and bpp::AbstractSiteContainerIterator::sites_.
|
virtual |
Implements bpp::ConstSiteIterator.
Definition at line 82 of file SiteContainerIterator.cpp.
References bpp::AbstractSiteContainerIterator::currentPosition_, bpp::SiteContainer::getSite(), nextSiteWithoutGapPosition(), and bpp::AbstractSiteContainerIterator::sites_.
int NoGapSiteContainerIterator::nextSiteWithoutGapPosition | ( | int | current | ) | const |
Definition at line 94 of file SiteContainerIterator.cpp.
References bpp::SiteContainer::getSite(), bpp::SymbolListTools::hasGap(), and bpp::AbstractSiteContainerIterator::sites_.
Referenced by nextSite(), and NoGapSiteContainerIterator().
int NoGapSiteContainerIterator::previousSiteWithoutGapPosition | ( | int | current | ) | const |
Definition at line 102 of file SiteContainerIterator.cpp.
References bpp::SiteContainer::getSite(), bpp::SymbolListTools::hasGap(), and bpp::AbstractSiteContainerIterator::sites_.
|
protectedinherited |
Definition at line 59 of file SiteContainerIterator.h.
Referenced by bpp::CompleteSiteContainerIterator::CompleteSiteContainerIterator(), bpp::SimpleSiteContainerIterator::nextSite(), nextSite(), bpp::CompleteSiteContainerIterator::nextSite(), NoGapSiteContainerIterator(), and bpp::AbstractSiteContainerIterator::operator=().
|
protectedinherited |
Definition at line 58 of file SiteContainerIterator.h.
Referenced by bpp::SimpleSiteContainerIterator::hasMoreSites(), hasMoreSites(), bpp::CompleteSiteContainerIterator::hasMoreSites(), bpp::CompleteSiteContainerIterator::nextCompleteSitePosition(), bpp::SimpleSiteContainerIterator::nextSite(), nextSite(), bpp::CompleteSiteContainerIterator::nextSite(), nextSiteWithoutGapPosition(), bpp::AbstractSiteContainerIterator::operator=(), bpp::CompleteSiteContainerIterator::previousCompleteSitePosition(), and previousSiteWithoutGapPosition().