bpp-seq3  3.0.0
bpp::AbstractSiteContainerIterator Class Referenceabstract

Partial implementation of the SiteIterator interface, allowing to loop over a site container. More...

#include <Bpp/Seq/Container/SiteContainerIterator.h>

+ Inheritance diagram for bpp::AbstractSiteContainerIterator:
+ Collaboration diagram for bpp::AbstractSiteContainerIterator:

Public Member Functions

 AbstractSiteContainerIterator (const SiteContainer &sites)
 
 AbstractSiteContainerIterator (const AbstractSiteContainerIterator &asi)
 
AbstractSiteContainerIteratoroperator= (const AbstractSiteContainerIterator &asi)
 
virtual ~AbstractSiteContainerIterator ()
 
virtual const SitenextSite ()=0
 
virtual bool hasMoreSites () const =0
 

Protected Attributes

const SiteContainersites_
 
int currentPosition_
 

Detailed Description

Partial implementation of the SiteIterator interface, allowing to loop over a site container.

Definition at line 54 of file SiteContainerIterator.h.

Constructor & Destructor Documentation

◆ AbstractSiteContainerIterator() [1/2]

AbstractSiteContainerIterator::AbstractSiteContainerIterator ( const SiteContainer sites)

Definition at line 54 of file SiteContainerIterator.cpp.

◆ AbstractSiteContainerIterator() [2/2]

bpp::AbstractSiteContainerIterator::AbstractSiteContainerIterator ( const AbstractSiteContainerIterator asi)
inline

Definition at line 64 of file SiteContainerIterator.h.

◆ ~AbstractSiteContainerIterator()

virtual bpp::AbstractSiteContainerIterator::~AbstractSiteContainerIterator ( )
inlinevirtual

Definition at line 75 of file SiteContainerIterator.h.

Member Function Documentation

◆ hasMoreSites()

virtual bool bpp::ConstSiteIterator::hasMoreSites ( ) const
pure virtualinherited

◆ nextSite()

virtual const Site* bpp::ConstSiteIterator::nextSite ( )
pure virtualinherited

◆ operator=()

AbstractSiteContainerIterator& bpp::AbstractSiteContainerIterator::operator= ( const AbstractSiteContainerIterator asi)
inline

Definition at line 68 of file SiteContainerIterator.h.

References currentPosition_, and sites_.

Member Data Documentation

◆ currentPosition_

◆ sites_


The documentation for this class was generated from the following files: