bpp-seq3
3.0.0
|
The VectorSiteContainer class. More...
#include <Bpp/Seq/Container/VectorSiteContainer.h>
Public Member Functions | |
TemplateVectorSiteContainer (std::vector< std::unique_ptr< SiteType >> &vs, std::shared_ptr< const Alphabet > alphabet, bool checkPositions=true) | |
Build a new container from a set of sites. More... | |
TemplateVectorSiteContainer (size_t size, std::shared_ptr< const Alphabet > alphabet) | |
Build a new empty container with specified size. More... | |
TemplateVectorSiteContainer (const std::vector< std::string > &sequenceKeys, std::shared_ptr< const Alphabet > alphabet, bool useKeysAsNames=true) | |
Build a new empty container with specified sequence keys. More... | |
TemplateVectorSiteContainer (std::shared_ptr< const Alphabet > alphabet) | |
Build a new empty container. More... | |
TemplateVectorSiteContainer (const TemplateVectorSiteContainer< SiteType, SequenceType > &vsc) | |
TemplateVectorSiteContainer (const TemplateSiteContainerInterface< SiteType, SequenceType, std::string > &sc) | |
TemplateVectorSiteContainer (const TemplateSequenceContainerInterface< SequenceType, std::string > &sc) | |
TemplateVectorSiteContainer< SiteType, SequenceType > & | operator= (const TemplateVectorSiteContainer< SiteType, SequenceType > &vsc) |
TemplateVectorSiteContainer< SiteType, SequenceType > & | operator= (const TemplateSiteContainerInterface< SiteType, SequenceType, std::string > &sc) |
TemplateVectorSiteContainer< SiteType, SequenceType > & | operator= (const TemplateSequenceContainerInterface< SequenceType, std::string > &sc) |
virtual | ~TemplateVectorSiteContainer () |
const Alphabet & | alphabet () const override |
Get the container's alphabet. More... | |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
Get a pointer toward the container's alphabet. More... | |
virtual const Comments & | getComments () const =0 |
Get the comments. More... | |
const Comments & | getComments () const override |
Get the comments. More... | |
virtual void | setComments (const Comments &comments)=0 |
Set the comments. More... | |
void | setComments (const Comments &comments) override |
Set the comments. More... | |
virtual void | clearComments ()=0 |
void | clearComments () override |
The Clonable interface. | |
TemplateVectorSiteContainer< SiteType, SequenceType > * | clone () const override |
The SiteContainer interface implementation: | |
const SiteType & | site (size_t sitePosition) const override |
Get a site from the container. More... | |
void | setSite (size_t sitePosition, std::unique_ptr< SiteType > &site, bool checkCoordinate=true) override |
Set a site in the container. More... | |
std::unique_ptr< SiteType > | removeSite (size_t sitePosition) override |
Remove a site from the container. More... | |
void | deleteSite (size_t sitePosition) override |
Delete a site from the container. More... | |
void | addSite (std::unique_ptr< SiteType > &site, bool checkCoordinate=true) override |
Add a site in the container. More... | |
void | addSite (std::unique_ptr< SiteType > &site, size_t sitePosition, bool checkCoordinate=true) override |
Add a site in the container. More... | |
void | deleteSites (size_t sitePosition, size_t length) override |
Remove a continuous range of sites in the container. More... | |
size_t | getNumberOfSites () const override |
Get the number of aligned positions in the container. More... | |
void | reindexSites () override |
Set all coordinate attributes. More... | |
Vint | getSiteCoordinates () const override |
Get all coordinates of sites. More... | |
void | setSiteCoordinates (const Vint &vCoordinates) override |
Set all coordinates of sites. More... | |
The SequenceContainer interface. | |
bool | hasSequence (const std::string &sequenceKey) const override |
Check if a certain key is associated to a sequence in the container. More... | |
size_t | getSequencePosition (const std::string &sequenceKey) const override |
Get the position of a sequence with a given key in the container. More... | |
const SequenceType & | sequence (const std::string &sequenceKey) const override |
Retrieve a sequence object from the container. More... | |
const SequenceType & | sequence (size_t sequencePosition) const override |
Retrieve a sequence object from the container. More... | |
std::unique_ptr< SequenceType > | removeSequence (size_t sequencePosition) override |
Remove a sequence from the container. More... | |
std::unique_ptr< SequenceType > | removeSequence (const std::string &sequenceKey) override |
Remove a sequence from the container. More... | |
void | deleteSequence (size_t sequencePosition) override |
Remove and delete a sequence from the container. More... | |
void | deleteSequence (const std::string &sequenceKey) override |
Remove and delete a sequence from the container. More... | |
size_t | getNumberOfSequences () const override |
Get the number of sequences in the container. More... | |
std::vector< std::string > | getSequenceKeys () const override |
void | setSequenceKeys (const std::vector< std::string > &sequenceKeys) override |
Reset all sequence keys. More... | |
const std::string & | sequenceKey (size_t sequencePosition) const override |
Get the key associated to a given sequence. More... | |
std::vector< std::string > | getSequenceNames () const override |
void | setSequenceNames (const std::vector< std::string > &names, bool updateKeys) override |
Batch-set all sequence names. More... | |
std::vector< Comments > | getSequenceComments () const override |
void | clear () override |
Delete all data in the container. More... | |
TemplateVectorSiteContainer< SiteType, SequenceType > * | createEmptyContainer () const override |
Return a copy of this container, but with no data inside. More... | |
const SequenceType::ElementType & | valueAt (const std::string &sequenceKey, size_t sitePosition) const override |
Get the content of the dataset at a specific position (sequence key, site position). More... | |
SequenceType::ElementType & | valueAt (const std::string &sequenceKey, size_t sitePosition) override |
Get the content of the dataset at a specific position (sequence key, site position). More... | |
const SequenceType::ElementType & | valueAt (size_t sequencePosition, size_t sitePosition) const override |
Get the content of the dataset at a specific position (sequence position, site position). More... | |
SequenceType::ElementType & | valueAt (size_t sequencePosition, size_t sitePosition) override |
Get the content of the dataset at a specific position (sequence position, site position). More... | |
double | getStateValueAt (size_t sitePosition, const std::string &sequenceKey, int state) const override |
Get the value of a state at a given position. More... | |
double | operator() (size_t sitePosition, const std::string &sequenceKey, int state) const override |
Get the value of a state at a given position. More... | |
double | getStateValueAt (size_t sitePosition, size_t sequencePosition, int state) const override |
Get value of a state at a given position. More... | |
double | operator() (size_t sitePosition, size_t sequencePosition, int state) const override |
Get the value of a state at a given position. More... | |
void | setSequence (const std::string &sequenceKey, std::unique_ptr< SequenceType > &sequence) override |
Replace a sequence in the container. More... | |
void | setSequence (size_t sequencePosition, std::unique_ptr< SequenceType > &sequence) override |
Replace a sequence in the container. More... | |
void | setSequence (size_t sequencePosition, std::unique_ptr< SequenceType > &sequence, const std::string &sequenceKey) override |
Replace a sequence in the container. More... | |
void | addSequence (const std::string &sequenceKey, std::unique_ptr< SequenceType > &sequence) override |
Add a sequence to the container. More... | |
void | insertSequence (size_t sequencePosition, std::unique_ptr< SequenceType > &sequence, const std::string &sequenceKey) override |
Insert a sequence in the container. More... | |
Protected Member Functions | |
SiteType & | site_ (size_t sitePosition) |
void | realloc_ (size_t n) |
Protected Attributes | |
VectorPositionedContainer< SiteType > | siteContainer_ |
VectorMappedContainer< SequenceType > | sequenceContainer_ |
std::vector< std::string > | sequenceNames_ |
std::vector< Comments > | sequenceComments_ |
std::shared_ptr< const Alphabet > | alphabet_ |
The container's alphabet. More... | |
Comments | comments_ |
The VectorSiteContainer class.
Sites are stored in a std::vector of pointers. Site access is hence in , and sequence access in , where is the number of sites in the container.
Sequences are built & stored on the fly, with a cache for time efficiency.
See VectorSequenceContainer for an alternative implementation.
Definition at line 41 of file VectorSiteContainer.h.
|
inline |
Build a new container from a set of sites.
vs | A std::vector of sites. |
alphabet | The common alphabet for all sites. |
checkPositions | Check for the redundancy of site position tag. This may turn to be very time consuming! |
Exception | If sites differ in size or in alphabet. |
Definition at line 60 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::VectorMappedContainer< T >::appendObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TextTools::toString().
|
inline |
Build a new empty container with specified size.
size | Number of sequences in the container. |
alphabet | The alphabet for this container. |
Definition at line 94 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::appendObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TextTools::toString().
|
inline |
Build a new empty container with specified sequence keys.
sequenceKeys | Sequence keys. This will set the number of sequences in the container. |
alphabet | The alphabet for this container. |
useKeysAsNames | If yes, the sequence keys will also be used as sequence names (default). Otherwise, sequence names will be set to Seq_1, Seq_2, etc. |
Definition at line 118 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::appendObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TextTools::toString().
|
inline |
Build a new empty container.
alphabet | The alphabet for this container. |
Definition at line 155 of file VectorSiteContainer.h.
|
inline |
Definition at line 164 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::VectorMappedContainer< T >::appendObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequenceKeys(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inline |
Definition at line 184 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::VectorMappedContainer< T >::appendObject(), bpp::TemplateSiteContainerInterface< SiteType, SequenceType, HashType >::getNumberOfSites(), bpp::TemplateSequenceDataInterface< HashType >::getSequenceKeys(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), and bpp::TemplateSiteContainerInterface< SiteType, SequenceType, HashType >::site().
|
inline |
Definition at line 203 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateSequenceDataInterface< HashType >::getSequenceKeys(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::reindexSites(), bpp::TemplateSequenceContainerInterface< SequenceType, HashType >::sequence(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
|
inlinevirtual |
Definition at line 274 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear().
|
inlineoverridevirtual |
Add a sequence to the container.
Similar to setSequence, with the exception that an Exception will be raised in case of an existing key. Existing sequences will not be updated, only new ones will be appended.
sequenceKey | The key to which the sequence is associated. |
sequencePtr | The sequence to add. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 731 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::appendObject(), bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::MappedNamedContainer< T >::hasObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::realloc_(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_(), and bpp::TextTools::toString().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
inlineoverridevirtual |
Add a site in the container.
site | The site to add. |
checkCoordinate | Look if the coordinate of the new site match a coordinate attribute in the container. |
Exception | If the specified site does not exists or is not correct. |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 355 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::appendObject(), bpp::VectorPositionedContainer< T >::appendObject(), bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::VectorMappedContainer< T >::nullify(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_, and bpp::TextTools::toString().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::realloc_(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
inlineoverridevirtual |
Add a site in the container.
site | The site to add. |
sitePosition | The coordinate where to insert the site. |
checkCoordinate | Look if the coordinate of the new site match a coordinate attribute in the container. |
Exception | If the specified site does not exists or is not correct. |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 398 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::appendObject(), bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::VectorPositionedContainer< T >::insertObject(), bpp::VectorMappedContainer< T >::nullify(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_, and bpp::TextTools::toString().
|
inlineoverridevirtualinherited |
Get the container's alphabet.
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 95 of file AbstractSequenceContainer.h.
|
inlineoverridevirtual |
Delete all data in the container.
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 634 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::clear(), bpp::VectorPositionedContainer< T >::clear(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::realloc_(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::~TemplateVectorSiteContainer().
|
inlineoverridevirtualinherited |
Implements bpp::Commentable.
Definition at line 88 of file Commentable.h.
References bpp::SimpleCommentable::comments_.
|
pure virtualinherited |
Implemented in bpp::SimpleCommentable.
|
inlineoverridevirtual |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 285 of file VectorSiteContainer.h.
|
inlineoverridevirtual |
Return a copy of this container, but with no data inside.
This method creates a new SequencedContainer object. The class of this container depends on the class implementing this interface.
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 642 of file VectorSiteContainer.h.
References bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), and bpp::SimpleCommentable::getComments().
|
inlineoverridevirtual |
Remove and delete a sequence from the container.
sequenceKey | The key to which the sequence is associated. |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 585 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
|
inlineoverridevirtual |
Remove and delete a sequence from the container.
sequencePosition | The position of the sequence. |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 570 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::deleteObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence().
|
inlineoverridevirtual |
Delete a site from the container.
The site is deleted (ie the container is shortened).
sitePosition | The position of the site in the container. |
IndexOutOfBoundsException | If the specified site does not exists. |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 347 of file VectorSiteContainer.h.
References bpp::VectorPositionedContainer< T >::deleteObject(), bpp::VectorMappedContainer< T >::nullify(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
|
inlineoverridevirtual |
Remove a continuous range of sites in the container.
sitePosition | The position of the first site in the container. |
length | The length of the region to delete, starting at pposition sitePosition. |
IndexOutOfBoundsException | If the specified range is not valid. |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 444 of file VectorSiteContainer.h.
References bpp::VectorPositionedContainer< T >::deleteObjects(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
|
inlineoverridevirtualinherited |
Get a pointer toward the container's alphabet.
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 101 of file AbstractSequenceContainer.h.
|
pure virtualinherited |
Get the comments.
Implemented in bpp::SimpleCommentable.
Referenced by bpp::Mase::appendSequencesFromStream(), bpp::AllelicAlphabet::convertFromStateAlphabet(), bpp::SiteContainerTools::getSelectedPositions(), bpp::MaseTools::getSelectedSites(), bpp::SiteContainerTools::getSelectedSites(), bpp::AbstractCoreSequence::operator=(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::TemplateVectorSequenceContainer< SequenceType >::operator=(), bpp::SiteContainerTools::resolveDottedAlignment(), bpp::NucleicAcidsReplication::reverse(), bpp::AbstractReverseTransliterator::reverse(), bpp::SequenceTools::RNYslice(), bpp::SequenceTools::subseq(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::TemplateAlignedSequenceContainer(), bpp::TemplateVectorSequenceContainer< SequenceType >::TemplateVectorSequenceContainer(), bpp::NucleicAcidsReplication::translate(), bpp::AbstractTransliterator::translate(), bpp::Stockholm::writeAlignment(), bpp::Fasta::writeSequences(), and bpp::Mase::writeSequences().
|
inlineoverridevirtualinherited |
Get the comments.
Implements bpp::Commentable.
Definition at line 79 of file Commentable.h.
References bpp::SimpleCommentable::comments_.
Referenced by bpp::SequenceWithQualityTools::concatenate(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::createEmptyContainer(), bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::TemplateVectorSequenceContainer< SequenceType >::createEmptyContainer(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::createEmptyContainer(), bpp::SequenceWithAnnotationTools::createMaskAnnotation(), bpp::SequenceWithAnnotation::operator=(), bpp::SequenceWithQualityTools::subseq(), bpp::Pasta::writeSequence(), and bpp::Fasta::writeSequence().
|
inlineoverridevirtual |
Get the number of sequences in the container.
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 592 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::getNumberOfObjects(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequenceNames(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSite().
|
inlineoverridevirtual |
Get the number of aligned positions in the container.
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 449 of file VectorSiteContainer.h.
References bpp::VectorPositionedContainer< T >::getSize(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSiteCoordinates(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::reindexSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSiteCoordinates(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
inlineoverridevirtual |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 629 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_.
|
inlineoverridevirtual |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 597 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::getObjectNames(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
inlineoverridevirtual |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 612 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_.
|
inlineoverridevirtual |
Get the position of a sequence with a given key in the container.
sequenceKey | The key to which the sequence is associated. |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 497 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::getObjectPosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getStateValueAt(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator()(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::valueAt().
|
inlineoverridevirtual |
Get all coordinates of sites.
Implements bpp::TemplateAlignmentDataInterface< HashType >.
Definition at line 462 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineoverridevirtual |
Get the value of a state at a given position.
sitePosition | index of the site |
sequenceKey | key of the sequence in the container |
state | state in the alphabet |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 675 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineoverridevirtual |
Get value of a state at a given position.
sitePosition | index of the site |
sequencePosition | index of the sequence in the container |
state | state in the alphabet |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 685 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineoverridevirtual |
Check if a certain key is associated to a sequence in the container.
sequenceKey | The key to which the sequence is associated. |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 491 of file VectorSiteContainer.h.
References bpp::MappedNamedContainer< T >::hasObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
|
inlineoverridevirtual |
Insert a sequence in the container.
sequencePosition | The position of the sequence. |
sequencePtr | The sequence to add. |
sequenceKey | The new key of the sequence. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 762 of file VectorSiteContainer.h.
References bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::VectorMappedContainer< T >::insertObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
|
inlineoverridevirtual |
Get the value of a state at a given position.
Same as getValueAt.
sitePosition | index of the site |
sequenceKey | key of the sequence in the container |
state | state in the alphabet |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 680 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineoverridevirtual |
Get the value of a state at a given position.
Same as getValueAt.
sitePosition | index of the site |
sequencePosition | index of the sequence in the container |
state | state in the alphabet |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 690 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inline |
Definition at line 258 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::TemplateSequenceDataInterface< HashType >::getSequenceKeys(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::reindexSites(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
|
inline |
Definition at line 236 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::VectorMappedContainer< T >::appendObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::TemplateSiteContainerInterface< SiteType, SequenceType, HashType >::getNumberOfSites(), bpp::TemplateSequenceDataInterface< HashType >::getSequenceKeys(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateSiteContainerInterface< SiteType, SequenceType, HashType >::site().
|
inline |
Definition at line 219 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineprotected |
Definition at line 807 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::reindexSites().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence().
|
inlineoverridevirtual |
Set all coordinate attributes.
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 454 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::realloc_(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
inlineoverridevirtual |
Remove a sequence from the container.
sequenceKey | The key to which the sequence is associated. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 563 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
|
inlineoverridevirtual |
Remove a sequence from the container.
sequencePosition | The position of the sequence. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 544 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::VectorMappedContainer< T >::removeObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence().
|
inlineoverridevirtual |
Remove a site from the container.
The site is deleted (ie the container is shortened) and a pointer toward it is returned.
sitePosition | The position of the site in the container. |
IndexOutOfBoundsException | If the specified site does not exists. |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 337 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::nullify(), bpp::VectorPositionedContainer< T >::removeObject(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
|
inlineoverridevirtual |
Retrieve a sequence object from the container.
sequenceKey | The key to which the sequence is associated. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 503 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence().
|
inlineoverridevirtual |
Retrieve a sequence object from the container.
sequencePosition | The position of the sequence. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 509 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::addObject_(), bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::MappedNamedContainer< T >::getObject(), bpp::VectorMappedContainer< T >::getObjectName(), bpp::MappedNamedContainer< T >::isAvailableName(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceComments_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineoverridevirtual |
Get the key associated to a given sequence.
sequencePosition | The position of the sequence in the container. |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 607 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::getObjectName(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getStateValueAt(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::hasSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator()(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::valueAt().
|
inlineoverridevirtualinherited |
Set the comments.
comments | The new comments. |
Implements bpp::Commentable.
Definition at line 86 of file Commentable.h.
References bpp::SimpleCommentable::comments_.
Referenced by bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::TemplateVectorSequenceContainer< SequenceType >::createEmptyContainer(), bpp::Pasta::nextSequence(), bpp::Fasta::nextSequence(), bpp::AbstractCoreSequence::operator=(), bpp::SequenceWithAnnotation::operator=(), bpp::AbstractTemplateSequenceContainer< SequenceType, HashType >::operator=(), bpp::TemplateVectorSequenceContainer< SequenceType >::operator=(), bpp::TemplateAlignedSequenceContainer< SequenceType, SiteType >::TemplateAlignedSequenceContainer(), and bpp::TemplateVectorSequenceContainer< SequenceType >::TemplateVectorSequenceContainer().
|
pure virtualinherited |
Set the comments.
comments | The new comments. |
Implemented in bpp::SimpleCommentable.
Referenced by bpp::Pasta::appendAlignmentFromStream(), bpp::Clustal::appendAlignmentFromStream(), bpp::Fasta::appendSequencesFromStream(), and bpp::Mase::appendSequencesFromStream().
|
inlineoverridevirtual |
Replace a sequence in the container.
If a sequence is found with the given key, it will be updated with the new one. If no sequence with the given key is found, the new sequence will be added to the container.
sequenceKey | The key to which the sequence is associated. |
sequencePtr | The sequence to set. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 696 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence().
|
inlineoverridevirtual |
Replace a sequence in the container.
The original key associated to the sequence will be kept.
sequencePosition | The position of the sequence. |
sequencePtr | The sequence to add. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 703 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::getObjectName(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence().
|
inlineoverridevirtual |
Replace a sequence in the container.
The original key associated to the sequence will be kept.
sequencePosition | The position of the sequence. |
sequencePtr | The sequence to add. |
sequenceKey | The new key of the sequence. |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 709 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::addObject(), bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
|
inlineoverridevirtual |
Reset all sequence keys.
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 602 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, and bpp::VectorMappedContainer< T >::setObjectNames().
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequenceNames().
|
inlineoverridevirtual |
Batch-set all sequence names.
names | A vector of sequence names. Must be the same size as the number of sequences in the container, otherwise a DimensionException is thrown. |
updateKeys | Tell whether the keys of the sequences should be updated with the new sequence names. |
Implements bpp::TemplateSequenceDataInterface< std::string >.
Definition at line 617 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::VectorMappedContainer< T >::nullify(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceNames_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequenceKeys().
|
inlineoverridevirtual |
Set a site in the container.
sitePosition | The position of the site in the container. |
site | The site to set. |
checkCoordinate | Look if the coordinate of the new site match a coordinate attribute in the container. |
Exception | If the specified site does not exists or is not correct. |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 301 of file VectorSiteContainer.h.
References bpp::VectorPositionedContainer< T >::addObject(), bpp::AbstractTemplateSequenceContainer< SequenceType, std::string >::getAlphabet(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::VectorMappedContainer< T >::nullify(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
|
inlineoverridevirtual |
Set all coordinates of sites.
vCoordinates | A vector with all site coordinates. |
Implements bpp::TemplateAlignmentDataInterface< HashType >.
Definition at line 472 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
|
inlineoverridevirtual |
Get a site from the container.
sitePosition | The position of the site in the container. |
IndexOutOfBoundsException | If the specified site does not exists. |
Implements bpp::TemplateSiteContainerInterface< SiteType, SequenceType, std::string >.
Definition at line 296 of file VectorSiteContainer.h.
References bpp::VectorPositionedContainer< T >::getObject(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSiteCoordinates(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getStateValueAt(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator()(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::valueAt().
|
inlineprotected |
Get a non-const reference to a site in the container. It is a convenient short-cut for use within the class only, as this can potentially mess up the data.
sitePosition | the index of the site to retrieve. |
Definition at line 801 of file VectorSiteContainer.h.
References bpp::VectorPositionedContainer< T >::getObject(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::siteContainer_.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::reindexSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSiteCoordinates(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::valueAt().
|
inlineoverridevirtual |
Get the content of the dataset at a specific position (sequence key, site position).
sequenceKey | key of the sequence in the container |
sitePosition | index of the site |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 650 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineoverridevirtual |
Get the content of the dataset at a specific position (sequence key, site position).
sequenceKey | key of the sequence in the container |
sitePosition | index of the site |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 655 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::addObject(), bpp::VectorMappedContainer< T >::getObjectName(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
|
inlineoverridevirtual |
Get the content of the dataset at a specific position (sequence position, site position).
sequencePosition | index of the sequence in the container |
sitePosition | index of the site |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 663 of file VectorSiteContainer.h.
References bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site().
|
inlineoverridevirtual |
Get the content of the dataset at a specific position (sequence position, site position).
sequencePosition | index of the sequence in the container |
sitePosition | index of the site |
Implements bpp::TemplateSequenceContainerInterface< SequenceType, std::string >.
Definition at line 668 of file VectorSiteContainer.h.
References bpp::VectorMappedContainer< T >::addObject(), bpp::VectorMappedContainer< T >::getObjectName(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceContainer_, and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().
|
protectedinherited |
The container's alphabet.
Definition at line 31 of file AbstractSequenceContainer.h.
|
protectedinherited |
Definition at line 50 of file Commentable.h.
Referenced by bpp::SimpleCommentable::clearComments(), bpp::SimpleCommentable::getComments(), bpp::SimpleCommentable::operator=(), and bpp::SimpleCommentable::setComments().
|
protected |
Definition at line 49 of file VectorSiteContainer.h.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequenceComments(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
protected |
Definition at line 47 of file VectorSiteContainer.h.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSequences(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequenceKeys(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequencePosition(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::hasSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequenceKey(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequenceKeys(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequenceNames(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::valueAt().
|
protected |
Definition at line 48 of file VectorSiteContainer.h.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getSequenceNames(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::insertSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::operator=(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::sequence(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSequenceNames(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::TemplateVectorSiteContainer().
|
protected |
Definition at line 46 of file VectorSiteContainer.h.
Referenced by bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::addSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::clear(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::deleteSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::getNumberOfSites(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::removeSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::setSite(), bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site(), and bpp::TemplateVectorSiteContainer< SiteType, SequenceType >::site_().