bpp-seq
2.2.0
|
The VectorSequenceContainer class. More...
#include <Bpp/Seq/Container/VectorSequenceContainer.h>
Public Member Functions | |
VectorSequenceContainer (const std::vector< const Sequence *> &vs, const Alphabet *alpha) throw (AlphabetMismatchException) | |
Build a new container from a std::vector of pointers toward sequence objects. More... | |
VectorSequenceContainer (const Alphabet *alpha) | |
Build an empty container that will contain sequences of a particular alphabet. More... | |
VectorSequenceContainer & | operator= (const VectorSequenceContainer &vsc) |
Assign from a VectorSequenceContainer. More... | |
VectorSequenceContainer & | operator= (const OrderedSequenceContainer &osc) |
Copy from an OrderedSequenceContainer. More... | |
VectorSequenceContainer & | operator= (const SequenceContainer &osc) |
Copy from a SequenceContainer. More... | |
virtual | ~VectorSequenceContainer () |
Container destructor: delete all sequences in the container. More... | |
Copy contructors: | |
VectorSequenceContainer (const VectorSequenceContainer &vsc) | |
Copy from a VectorSequenceContainer. More... | |
VectorSequenceContainer (const OrderedSequenceContainer &osc) | |
Copy from an OrderedSequenceContainer. More... | |
VectorSequenceContainer (const SequenceContainer &osc) | |
Copy from a SequenceContainer. More... | |
The Clonable interface. | |
Clonable * | clone () const |
The SequenceContainer interface. | |
bool | hasSequence (const std::string &name) const |
Check if a sequence with a given name is present in the container. More... | |
const Sequence & | getSequence (const std::string &name) const throw (SequenceNotFoundException) |
Retrieve a sequence object from the container. More... | |
void | setSequence (const std::string &name, const Sequence &sequence, bool checkName=true) throw (Exception) |
Replace a sequence in the container. More... | |
Sequence * | removeSequence (const std::string &name) throw (SequenceNotFoundException) |
Extract (and remove) a sequence from the container. More... | |
void | deleteSequence (const std::string &name) throw (SequenceNotFoundException) |
Delete a sequence of the container. More... | |
size_t | getNumberOfSequences () const |
Get the number of sequences in the container. More... | |
std::vector< std::string > | getSequencesNames () const |
Get all the names of the sequences in the container. More... | |
void | setSequencesNames (const std::vector< std::string > &names, bool checkNames=true) throw (Exception) |
Set all sequence names. More... | |
void | clear () |
Delete all sequences in the container. More... | |
VectorSequenceContainer * | createEmptyContainer () const |
Return a copy of this container, but with no sequence inside. More... | |
int & | valueAt (const std::string &sequenceName, size_t elementIndex) throw (SequenceNotFoundException, IndexOutOfBoundsException) |
Element access function. More... | |
const int & | valueAt (const std::string &sequenceName, size_t elementIndex) const throw (SequenceNotFoundException, IndexOutOfBoundsException) |
Element access function. More... | |
int & | operator() (const std::string &sequenceName, size_t elementIndex) |
Element access operator. More... | |
const int & | operator() (const std::string &sequenceName, size_t elementIndex) const |
Element access operator. More... | |
int & | valueAt (size_t sequenceIndex, size_t elementIndex) throw (IndexOutOfBoundsException) |
Element access operator. More... | |
const int & | valueAt (size_t sequenceIndex, size_t elementIndex) const throw (IndexOutOfBoundsException) |
Element access operator. More... | |
int & | operator() (size_t sequenceIndex, size_t elementIndex) |
Element access operator. More... | |
const int & | operator() (size_t sequenceIndex, size_t elementIndex) const |
Element access operator. More... | |
The OrderedSequenceContainer interface. | |
void | setComments (const std::string &name, const Comments &comments) throw (SequenceNotFoundException) |
Set the comments of a particular sequence. More... | |
void | setComments (size_t sequenceIndex, const Comments &comments) throw (IndexOutOfBoundsException) |
Set the comments of a particular sequence. More... | |
size_t | getSequencePosition (const std::string &name) const throw (SequenceNotFoundException) |
Get the position of a sequence in sequence container from its name. More... | |
const Sequence & | getSequence (size_t sequenceIndex) const throw (IndexOutOfBoundsException) |
Retrieve a sequence object from the container. More... | |
void | setSequence (size_t sequenceIndex, const Sequence &sequence, bool checkName=true) throw (Exception) |
Replace a sequence in the container. More... | |
Sequence * | removeSequence (size_t sequenceIndex) throw (IndexOutOfBoundsException) |
Extract (and remove) a sequence from the container. More... | |
void | deleteSequence (size_t sequenceIndex) throw (IndexOutOfBoundsException) |
Delete a sequence of the container. More... | |
Add sequence to this container. | |
virtual void | addSequence (const Sequence &sequence, bool checkName=true) throw (Exception) |
Add a sequence at the end of the container. More... | |
virtual void | addSequence (const Sequence &sequence, size_t sequenceIndex, bool checkName=true) throw (Exception) |
Add a sequence to the container at a particular position. More... | |
From the SequenceContainer interface | |
const Alphabet * | getAlphabet () const |
Get sequence container's alphabet. More... | |
const std::vector< int > & | getContent (const std::string &name) const throw (SequenceNotFoundException) |
Get the content of a sequence. More... | |
std::string | toString (const std::string &name) const throw (SequenceNotFoundException) |
Convert a particular sequence to a string. More... | |
const Comments & | getComments (const std::string &name) const throw (SequenceNotFoundException) |
Get comments of a particular sequence. More... | |
const Comments & | getGeneralComments () const |
Get the comments of this container. More... | |
void | setGeneralComments (const Comments &comments) |
Set the comments of this container. More... | |
void | deleteGeneralComments () |
Delete the comments associated to this container. More... | |
From the OrderedSequenceContainer interface | |
virtual const std::vector< int > & | getContent (size_t sequenceIndex) const throw (IndexOutOfBoundsException) |
Get the content of a sequence. More... | |
virtual std::string | toString (size_t sequenceIndex) const throw (IndexOutOfBoundsException) |
Convert a particular sequence to a string. More... | |
virtual const Comments & | getComments (size_t sequenceIndex) const throw (IndexOutOfBoundsException) |
Get comments of a particular sequence. More... | |
virtual const std::string & | getName (size_t sequenceIndex) const throw (IndexOutOfBoundsException) |
Get the name of a particular sequence. More... | |
Protected Member Functions | |
AbstractSequenceContainer methods. | |
Sequence & | getSequence_ (size_t i) throw (IndexOutOfBoundsException) |
Sequence & | getSequence_ (const std::string &name) throw (SequenceNotFoundException) |
Private Attributes | |
std::vector< Sequence * > | sequences_ |
A std::vector of pointers toward the sequences stored in the container. More... | |
The VectorSequenceContainer class.
This is the simplest implementation of the OrderedSequenceContainer interface. Sequences are stored in a std::vector of pointers. The container is responsible for the creation and destruction of the sequence objects it contains.
Definition at line 63 of file VectorSequenceContainer.h.
VectorSequenceContainer::VectorSequenceContainer | ( | const std::vector< const Sequence *> & | vs, |
const Alphabet * | alpha | ||
) | |||
throw | ( | AlphabetMismatchException | |
) |
Build a new container from a std::vector of pointers toward sequence objects.
The addSequence() method is called uppon each Sequence object, hence each sequence is copied into the container.
vs | The std::vector of pointers toward sequence objects. |
alpha | The alphabet to all sequences. |
AlphabetMismatchException | if one sequence does not match the specified alphabet. |
Class constructors:
Definition at line 49 of file VectorSequenceContainer.cpp.
Referenced by clone(), and createEmptyContainer().
|
inline |
Build an empty container that will contain sequences of a particular alphabet.
alpha | The alphabet of the container. |
Definition at line 94 of file VectorSequenceContainer.h.
VectorSequenceContainer::VectorSequenceContainer | ( | const VectorSequenceContainer & | vsc | ) |
Copy from a VectorSequenceContainer.
vsc | The VectorSequenceContainer to copy into this container. |
Copy constructors:
Definition at line 64 of file VectorSequenceContainer.cpp.
References addSequence(), getNumberOfSequences(), and getSequence().
VectorSequenceContainer::VectorSequenceContainer | ( | const OrderedSequenceContainer & | osc | ) |
Copy from an OrderedSequenceContainer.
osc | The OrderedSequenceContainer to copy into this container. |
Definition at line 76 of file VectorSequenceContainer.cpp.
References addSequence(), bpp::OrderedSequenceContainer::getNumberOfSequences(), and bpp::OrderedSequenceContainer::getSequence().
VectorSequenceContainer::VectorSequenceContainer | ( | const SequenceContainer & | osc | ) |
Copy from a SequenceContainer.
osc | The SequenceContainer to copy into this container. |
Definition at line 88 of file VectorSequenceContainer.cpp.
References addSequence(), bpp::SequenceContainer::getGeneralComments(), bpp::SequenceContainer::getSequence(), bpp::SequenceContainer::getSequencesNames(), and bpp::AbstractSequenceContainer::setGeneralComments().
|
inlinevirtual |
Container destructor: delete all sequences in the container.
Definition at line 149 of file VectorSequenceContainer.h.
References clear().
|
virtual |
Add a sequence at the end of the container.
The sequence is copied into the container. If checkNames is set to true, the method check if the name of the sequence is already used in the container, and sends an exception if it is the case. Otherwise, do not check the name: the method is hence faster, but use it at your own risks!
sequence | The sequence to add. |
checkName | Tell if the method must check the name of the sequence before adding it. |
Exception | If the sequence couldn't be added to the container. |
Implements bpp::SequenceContainer.
Reimplemented in bpp::AlignedSequenceContainer.
Definition at line 284 of file VectorSequenceContainer.cpp.
Referenced by bpp::AlignedSequenceContainer::addSequence(), bpp::SequenceContainerTools::createContainerOfSpecifiedSize(), bpp::SequenceContainerTools::getCodonPosition(), operator=(), and VectorSequenceContainer().
|
virtual |
Add a sequence to the container at a particular position.
The sequence is copied into the container. If checkName is set to true, the method check if the name of the sequence is already used in the container, and sends an exception if it is the case. Otherwise, do not check the name: the method is hence faster, but use it at your own risks!
sequence | The sequence to add. |
sequenceIndex | The position where to insert the new sequence. All the following sequences will be pushed. |
checkName | Tell if the method must check the name of the sequence before adding it. |
Exception | If the sequence couldn't be added to the container. |
Reimplemented in bpp::AlignedSequenceContainer.
Definition at line 307 of file VectorSequenceContainer.cpp.
|
virtual |
Delete all sequences in the container.
Implements bpp::SequenceContainer.
Definition at line 371 of file VectorSequenceContainer.cpp.
References sequences_.
Referenced by bpp::AlignedSequenceContainer::clear(), operator=(), and ~VectorSequenceContainer().
|
inline |
Definition at line 158 of file VectorSequenceContainer.h.
References VectorSequenceContainer().
|
virtual |
Return a copy of this container, but with no sequence inside.
This method creates a new SequenceContainer objet. The class of this container depends on the derivative class.
Implements bpp::SequenceContainer.
Definition at line 391 of file VectorSequenceContainer.cpp.
References bpp::AbstractSequenceContainer::getAlphabet(), bpp::AbstractSequenceContainer::getGeneralComments(), bpp::AbstractSequenceContainer::setGeneralComments(), and VectorSequenceContainer().
|
inlinevirtualinherited |
Delete the comments associated to this container.
Implements bpp::SequenceContainer.
Definition at line 150 of file AbstractSequenceContainer.h.
References bpp::AbstractSequenceContainer::comments_.
|
inlinevirtual |
Delete a sequence of the container.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 180 of file VectorSequenceContainer.h.
References getSequencePosition().
|
virtual |
Delete a sequence of the container.
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 272 of file VectorSequenceContainer.cpp.
|
inlinevirtualinherited |
Get sequence container's alphabet.
Implements bpp::SequenceContainer.
Definition at line 123 of file AbstractSequenceContainer.h.
References bpp::AbstractSequenceContainer::alphabet_.
Referenced by bpp::MapSequenceContainer::createEmptyContainer(), bpp::VectorSiteContainer::createEmptyContainer(), createEmptyContainer(), bpp::CompressedVectorSiteContainer::createEmptyContainer(), and bpp::VectorSiteContainer::realloc().
|
inlinevirtualinherited |
Get comments of a particular sequence.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 134 of file AbstractSequenceContainer.h.
References bpp::Sequence::getComments(), and bpp::OrderedSequenceContainer::getSequence().
Referenced by bpp::CompressedVectorSiteContainer::CompressedVectorSiteContainer(), bpp::VectorSiteContainer::operator=(), bpp::CompressedVectorSiteContainer::operator=(), and bpp::VectorSiteContainer::VectorSiteContainer().
|
inlinevirtualinherited |
Get comments of a particular sequence.
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 177 of file AbstractSequenceContainer.h.
References bpp::Sequence::getComments(), and bpp::OrderedSequenceContainer::getSequence().
|
inlinevirtualinherited |
Get the content of a sequence.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 124 of file AbstractSequenceContainer.h.
References bpp::SymbolList::getContent(), and bpp::OrderedSequenceContainer::getSequence().
Referenced by bpp::SequenceContainerTools::getCodonPosition().
|
inlinevirtualinherited |
Get the content of a sequence.
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 167 of file AbstractSequenceContainer.h.
References bpp::SymbolList::getContent(), and bpp::OrderedSequenceContainer::getSequence().
|
inlinevirtualinherited |
Get the comments of this container.
Implements bpp::SequenceContainer.
Definition at line 140 of file AbstractSequenceContainer.h.
References bpp::AbstractSequenceContainer::comments_.
Referenced by bpp::MapSequenceContainer::createEmptyContainer(), bpp::VectorSiteContainer::createEmptyContainer(), createEmptyContainer(), and bpp::CompressedVectorSiteContainer::createEmptyContainer().
|
inlinevirtualinherited |
Get the name of a particular sequence.
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 162 of file AbstractSequenceContainer.h.
References bpp::Sequence::getName(), and bpp::OrderedSequenceContainer::getSequence().
Referenced by getSequencesNames(), and hasSequence().
|
inlinevirtual |
Get the number of sequences in the container.
Implements bpp::OrderedSequenceContainer.
Definition at line 185 of file VectorSequenceContainer.h.
References sequences_.
Referenced by operator=(), and VectorSequenceContainer().
|
virtual |
Retrieve a sequence object from the container.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 181 of file VectorSequenceContainer.cpp.
Referenced by operator()(), operator=(), valueAt(), and VectorSequenceContainer().
|
virtual |
Retrieve a sequence object from the container.
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 158 of file VectorSequenceContainer.cpp.
|
protected |
Definition at line 194 of file VectorSequenceContainer.cpp.
Referenced by operator()(), and valueAt().
|
protected |
Definition at line 204 of file VectorSequenceContainer.cpp.
|
virtual |
Get the position of a sequence in sequence container from its name.
name | The name of the sequence. |
SequenceNotFoundException | If no sequence with name 'name' could be found. |
Implements bpp::OrderedSequenceContainer.
Definition at line 217 of file VectorSequenceContainer.cpp.
Referenced by deleteSequence(), removeSequence(), and setSequence().
|
virtual |
Get all the names of the sequences in the container.
Implements bpp::OrderedSequenceContainer.
Definition at line 332 of file VectorSequenceContainer.cpp.
References bpp::AbstractSequenceContainer::getName(), and sequences_.
|
virtual |
Check if a sequence with a given name is present in the container.
name | The name of the sequence. |
Implements bpp::SequenceContainer.
Definition at line 168 of file VectorSequenceContainer.cpp.
References bpp::AbstractSequenceContainer::getName(), and sequences_.
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceName | The sequence name. |
elementIndex | The element position within the sequence. |
Implements bpp::SequenceContainer.
Definition at line 202 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceName | The sequence name. |
elementIndex | The element position within the sequence. |
Implements bpp::SequenceContainer.
Definition at line 207 of file VectorSequenceContainer.h.
References getSequence().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 222 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container. This method is faster then the valueAt function, but input parameters are not checked!
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
Implements bpp::OrderedSequenceContainer.
Definition at line 226 of file VectorSequenceContainer.h.
References getSequence().
VectorSequenceContainer & VectorSequenceContainer::operator= | ( | const VectorSequenceContainer & | vsc | ) |
Assign from a VectorSequenceContainer.
vsc | The VectorSequenceContainer to copy into this container. |
Assignation operator:
Definition at line 105 of file VectorSequenceContainer.cpp.
References addSequence(), clear(), getNumberOfSequences(), getSequence(), and bpp::AbstractSequenceContainer::operator=().
Referenced by bpp::AlignedSequenceContainer::operator=().
VectorSequenceContainer & VectorSequenceContainer::operator= | ( | const OrderedSequenceContainer & | osc | ) |
Copy from an OrderedSequenceContainer.
osc | The OrderedSequenceContainer to copy into this container. |
Definition at line 121 of file VectorSequenceContainer.cpp.
References addSequence(), clear(), bpp::OrderedSequenceContainer::getNumberOfSequences(), bpp::OrderedSequenceContainer::getSequence(), and bpp::AbstractSequenceContainer::operator=().
VectorSequenceContainer & VectorSequenceContainer::operator= | ( | const SequenceContainer & | osc | ) |
Copy from a SequenceContainer.
osc | The SequenceContainer to copy into this container. |
Definition at line 139 of file VectorSequenceContainer.cpp.
References addSequence(), clear(), bpp::SequenceContainer::getSequence(), bpp::SequenceContainer::getSequencesNames(), and bpp::AbstractSequenceContainer::operator=().
|
inlinevirtual |
Extract (and remove) a sequence from the container.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 175 of file VectorSequenceContainer.h.
References getSequencePosition().
|
virtual |
Extract (and remove) a sequence from the container.
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the name does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 258 of file VectorSequenceContainer.cpp.
|
inlinevirtual |
Set the comments of a particular sequence.
name | The name of the sequence. |
comments | The comments to set to sequence with name 'name'. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Reimplemented from bpp::AbstractSequenceContainer.
Definition at line 238 of file VectorSequenceContainer.h.
References bpp::AbstractSequenceContainer::setComments().
|
virtual |
Set the comments of a particular sequence.
sequenceIndex | The position of the sequence. |
comments | The comments to set to sequence with position 'i'. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::AbstractSequenceContainer.
Definition at line 384 of file VectorSequenceContainer.cpp.
|
inlinevirtualinherited |
Set the comments of this container.
comments | The comments to be associated to this container. |
Implements bpp::SequenceContainer.
Definition at line 145 of file AbstractSequenceContainer.h.
References bpp::AbstractSequenceContainer::comments_.
Referenced by bpp::AlignedSequenceContainer::createEmptyContainer(), bpp::MapSequenceContainer::createEmptyContainer(), bpp::VectorSiteContainer::createEmptyContainer(), createEmptyContainer(), bpp::CompressedVectorSiteContainer::createEmptyContainer(), bpp::SiteContainerTools::getSelectedSites(), and VectorSequenceContainer().
|
inlinevirtual |
Replace a sequence in the container.
name | The name of the sequence. |
sequence | The sequence to add. |
checkName | Tell if the container must check if the name of the sequence is already used in the container before adding it. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Exception | Any other kind of exception, if the name of the sequence is already used, are whatever else depending on the implementation. |
Implements bpp::OrderedSequenceContainer.
Definition at line 170 of file VectorSequenceContainer.h.
References getSequencePosition().
Referenced by bpp::AlignedSequenceContainer::setSequence().
|
virtual |
Replace a sequence in the container.
sequenceIndex | The position of the sequence. |
sequence | The sequence to add. |
checkName | Tell if the container must check if the name of the sequence is already used in the container before adding it. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Exception | Any other kind of exception. |
Implements bpp::OrderedSequenceContainer.
Definition at line 230 of file VectorSequenceContainer.cpp.
|
virtual |
Set all sequence names.
names | A vector of strings with all sequence names. Its size must be strictly equal to the the size of the container (the number of sequences). |
checkNames | Tell if the container must check if the name of the sequence is already used in the container before adding it. |
Exception | If there are redundant names in the input vector. |
Implements bpp::OrderedSequenceContainer.
Definition at line 344 of file VectorSequenceContainer.cpp.
|
inlinevirtualinherited |
Convert a particular sequence to a string.
name | The name of the sequence. |
SequenceNotFoundException | If the name does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 129 of file AbstractSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence(), and bpp::SymbolList::toString().
|
inlinevirtualinherited |
Convert a particular sequence to a string.
sequenceIndex | The position of the sequence. |
IndexOutOfBoundsException | If the position does not match any sequence in the container. |
Implements bpp::OrderedSequenceContainer.
Definition at line 172 of file AbstractSequenceContainer.h.
References bpp::OrderedSequenceContainer::getSequence(), and bpp::SymbolList::toString().
|
inlinevirtual |
Element access function.
Allows direct access to the data stored in the container.
sequenceName | The sequence name. |
elementIndex | The element position within the sequence. |
SequenceNotFoundException | If no corresponding sequence is found in the container. |
IndexOutOfBoundsException | If the element position is not valid. |
Implements bpp::OrderedSequenceContainer.
Definition at line 192 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access function.
Allows direct access to the data stored in the container.
sequenceName | The sequence name. |
elementIndex | The element position within the sequence. |
SequenceNotFoundException | If no corresponding sequence is found in the container. |
IndexOutOfBoundsException | If the element position is not valid. |
Implements bpp::OrderedSequenceContainer.
Definition at line 197 of file VectorSequenceContainer.h.
References getSequence().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container.
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
IndexOutOfBoundsException | If a position is not valid. |
Implements bpp::OrderedSequenceContainer.
Definition at line 212 of file VectorSequenceContainer.h.
References getSequence_().
|
inlinevirtual |
Element access operator.
Allows direct access to the data stored in the container.
sequenceIndex | The sequence position. |
elementIndex | The element position within the sequence. |
IndexOutOfBoundsException | If a position is not valid. |
Implements bpp::OrderedSequenceContainer.
Definition at line 217 of file VectorSequenceContainer.h.
References getSequence().
|
mutableprivate |
A std::vector of pointers toward the sequences stored in the container.
Definition at line 71 of file VectorSequenceContainer.h.
Referenced by clear(), getNumberOfSequences(), getSequencesNames(), and hasSequence().