bpp-seq3  3.0.0
bpp::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType > Class Template 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::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType >:
+ Collaboration diagram for bpp::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType >:

Public Member Functions

 AbstractTemplateSiteContainerIterator (const TemplateSiteContainerInterface< SiteType, SequenceType, HashType > &sites)
 
 AbstractTemplateSiteContainerIterator (const AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType > &atsi)
 
AbstractTemplateSiteContainerIteratoroperator= (const AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType > &atsi)
 
virtual ~AbstractTemplateSiteContainerIterator ()
 
virtual const SiteType & nextSite ()=0
 
virtual bool hasMoreSites () const=0
 

Protected Attributes

const TemplateSiteContainerInterface< SiteType, SequenceType, HashType > * sites_
 
long int currentPosition_
 

Detailed Description

template<class SiteType, class SequenceType, class HashType>
class bpp::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType >

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

Definition at line 19 of file SiteContainerIterator.h.

Constructor & Destructor Documentation

◆ AbstractTemplateSiteContainerIterator() [1/2]

template<class SiteType , class SequenceType , class HashType >
bpp::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::AbstractTemplateSiteContainerIterator ( const TemplateSiteContainerInterface< SiteType, SequenceType, HashType > &  sites)
inline

Definition at line 27 of file SiteContainerIterator.h.

◆ AbstractTemplateSiteContainerIterator() [2/2]

template<class SiteType , class SequenceType , class HashType >
bpp::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::AbstractTemplateSiteContainerIterator ( const AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType > &  atsi)
inline

Definition at line 34 of file SiteContainerIterator.h.

◆ ~AbstractTemplateSiteContainerIterator()

template<class SiteType , class SequenceType , class HashType >
virtual bpp::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::~AbstractTemplateSiteContainerIterator ( )
inlinevirtual

Definition at line 48 of file SiteContainerIterator.h.

Member Function Documentation

◆ hasMoreSites()

◆ nextSite()

◆ operator=()

template<class SiteType , class SequenceType , class HashType >
AbstractTemplateSiteContainerIterator& bpp::AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::operator= ( const AbstractTemplateSiteContainerIterator< SiteType, SequenceType, HashType > &  atsi)
inline

Member Data Documentation

◆ currentPosition_

◆ sites_


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