bpp-seq3  3.0.0
bpp::SimpleTemplateSiteContainerIterator< SiteType, SequenceType, HashType > Class Template Reference

Loop over all sites in a SiteContainer. More...

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

+ Inheritance diagram for bpp::SimpleTemplateSiteContainerIterator< SiteType, SequenceType, HashType >:
+ Collaboration diagram for bpp::SimpleTemplateSiteContainerIterator< SiteType, SequenceType, HashType >:

Public Member Functions

 SimpleTemplateSiteContainerIterator (const TemplateSiteContainerInterface< SiteType, SequenceType, HashType > &sites)
 
virtual ~SimpleTemplateSiteContainerIterator ()
 
const SiteType & nextSite () override
 
bool hasMoreSites () const override
 

Protected Attributes

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

Detailed Description

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

Loop over all sites in a SiteContainer.

Definition at line 56 of file SiteContainerIterator.h.

Constructor & Destructor Documentation

◆ SimpleTemplateSiteContainerIterator()

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

Definition at line 64 of file SiteContainerIterator.h.

◆ ~SimpleTemplateSiteContainerIterator()

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

Definition at line 69 of file SiteContainerIterator.h.

Member Function Documentation

◆ hasMoreSites()

template<class SiteType , class SequenceType , class HashType >
bool bpp::SimpleTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::hasMoreSites ( ) const
inlineoverridevirtual

◆ nextSite()

template<class SiteType , class SequenceType , class HashType >
const SiteType& bpp::SimpleTemplateSiteContainerIterator< SiteType, SequenceType, HashType >::nextSite ( )
inlineoverridevirtual

Member Data Documentation

◆ currentPosition_

◆ sites_


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