40 #ifndef _SITECONTAINER_H_ 41 #define _SITECONTAINER_H_ 46 #include <Bpp/Exceptions.h> 47 #include <Bpp/Numeric/VectorTools.h> 80 virtual const Site&
getSite(
size_t siteIndex)
const throw (IndexOutOfBoundsException) = 0;
90 virtual void setSite(
size_t siteIndex,
const Site& site,
bool checkPosition)
throw (Exception) = 0;
99 virtual void addSite(
const Site& site,
bool checkPosition)
throw (Exception) = 0;
109 virtual void addSite(
const Site& site,
int position,
bool checkPosition)
throw (Exception) = 0;
119 virtual void addSite(
const Site& site,
size_t siteIndex,
bool checkPosition)
throw (Exception) = 0;
130 virtual void addSite(
const Site& site,
size_t siteIndex,
int position,
bool checkPosition)
throw (Exception) = 0;
141 virtual Site*
removeSite(
size_t siteIndex)
throw (IndexOutOfBoundsException, Exception) = 0;
149 virtual void deleteSite(
size_t siteIndex)
throw (IndexOutOfBoundsException, Exception) = 0;
158 virtual void deleteSites(
size_t siteIndex,
size_t length)
throw (IndexOutOfBoundsException, Exception) = 0;
182 #endif // _SITECONTAINER_H_
The SiteContainer interface.
The OrderedSequenceContainer interface.
This alphabet is used to deal NumericAlphabet.
virtual void setSite(size_t siteIndex, const Site &site, bool checkPosition)=0
Set a site in the container.
virtual void reindexSites()=0
Set all positions attributes.
virtual Site * removeSite(size_t siteIndex)=0
Remove a site from the container.
virtual void addSite(const Site &site, bool checkPosition)=0
Add a site in the container.
SiteContainer * clone() const =0
virtual const Site & getSite(size_t siteIndex) const =0
Get a site from the container.
virtual size_t getNumberOfSites() const =0
Get the number of sites in the container.
virtual Vint getSitePositions() const =0
Get all position attributes of sites.
virtual void deleteSites(size_t siteIndex, size_t length)=0
Delete a continuous range of sites in the container.
virtual void deleteSite(size_t siteIndex)=0
Delete a site in the container.