bpp-seq3
3.0.0
|
Loop over all complete sites in a SiteContainer (i.e. sites without gap and unresolved characters). More...
#include <Bpp/Seq/Container/SiteContainerIterator.h>
Public Member Functions | |
CompleteSiteContainerIterator (const SiteContainer &sites) | |
virtual | ~CompleteSiteContainerIterator () |
const Site * | nextSite () |
bool | hasMoreSites () const |
int | nextCompleteSitePosition (int current) const |
int | previousCompleteSitePosition (int current) const |
Protected Attributes | |
const SiteContainer * | sites_ |
int | currentPosition_ |
Loop over all complete sites in a SiteContainer (i.e. sites without gap and unresolved characters).
Definition at line 112 of file SiteContainerIterator.h.
CompleteSiteContainerIterator::CompleteSiteContainerIterator | ( | const SiteContainer & | sites | ) |
Definition at line 112 of file SiteContainerIterator.cpp.
References bpp::AbstractSiteContainerIterator::currentPosition_, and nextCompleteSitePosition().
|
inlinevirtual |
Definition at line 116 of file SiteContainerIterator.h.
|
virtual |
Implements bpp::ConstSiteIterator.
Definition at line 124 of file SiteContainerIterator.cpp.
References bpp::AlignedValuesContainer::getNumberOfSites(), and bpp::AbstractSiteContainerIterator::sites_.
int CompleteSiteContainerIterator::nextCompleteSitePosition | ( | int | current | ) | const |
Definition at line 129 of file SiteContainerIterator.cpp.
References bpp::SiteContainer::getSite(), bpp::SymbolListTools::isComplete(), and bpp::AbstractSiteContainerIterator::sites_.
Referenced by CompleteSiteContainerIterator(), and nextSite().
|
virtual |
Implements bpp::ConstSiteIterator.
Definition at line 117 of file SiteContainerIterator.cpp.
References bpp::AbstractSiteContainerIterator::currentPosition_, bpp::SiteContainer::getSite(), nextCompleteSitePosition(), and bpp::AbstractSiteContainerIterator::sites_.
int CompleteSiteContainerIterator::previousCompleteSitePosition | ( | int | current | ) | const |
Definition at line 137 of file SiteContainerIterator.cpp.
References bpp::SiteContainer::getSite(), bpp::SymbolListTools::isComplete(), and bpp::AbstractSiteContainerIterator::sites_.
|
protectedinherited |
Definition at line 59 of file SiteContainerIterator.h.
Referenced by CompleteSiteContainerIterator(), bpp::SimpleSiteContainerIterator::nextSite(), bpp::NoGapSiteContainerIterator::nextSite(), nextSite(), bpp::NoGapSiteContainerIterator::NoGapSiteContainerIterator(), and bpp::AbstractSiteContainerIterator::operator=().
|
protectedinherited |
Definition at line 58 of file SiteContainerIterator.h.
Referenced by bpp::SimpleSiteContainerIterator::hasMoreSites(), bpp::NoGapSiteContainerIterator::hasMoreSites(), hasMoreSites(), nextCompleteSitePosition(), bpp::SimpleSiteContainerIterator::nextSite(), bpp::NoGapSiteContainerIterator::nextSite(), nextSite(), bpp::NoGapSiteContainerIterator::nextSiteWithoutGapPosition(), bpp::AbstractSiteContainerIterator::operator=(), previousCompleteSitePosition(), and bpp::NoGapSiteContainerIterator::previousSiteWithoutGapPosition().