42 #ifndef BPP_SEQ_CONTAINER_ORDEREDSEQUENCECONTAINER_H
43 #define BPP_SEQ_CONTAINER_ORDEREDSEQUENCECONTAINER_H
46 #include "../Sequence.h"
105 virtual int&
valueAt(
const std::string& sequenceName,
size_t elementIndex) = 0;
107 virtual const int&
valueAt(
const std::string& sequenceName,
size_t elementIndex)
const = 0;
117 virtual int&
valueAt(
size_t sequenceIndex,
size_t elementIndex) = 0;
127 virtual const int&
valueAt(
size_t sequenceIndex,
size_t elementIndex)
const = 0;
140 virtual int&
operator()(
size_t sequenceIndex,
size_t elementIndex) = 0;
153 virtual const int&
operator()(
size_t sequenceIndex,
size_t elementIndex)
const = 0;
The OrderedSequenceContainer interface.
virtual int & valueAt(const std::string &sequenceName, size_t elementIndex)=0
Element access function.
virtual const Sequence & getSequence(size_t sequenceIndex) const =0
Retrieve a sequence object from the container.
virtual int & valueAt(size_t sequenceIndex, size_t elementIndex)=0
Element access operator.
virtual const int & operator()(size_t sequenceIndex, size_t elementIndex) const =0
Element access operator.
virtual void setSequence(size_t sequenceIndex, const Sequence &sequence, bool checkName)=0
Replace a sequence in the container.
virtual const int & valueAt(const std::string &sequenceName, size_t elementIndex) const =0
Element access function.
virtual int & operator()(size_t sequenceIndex, size_t elementIndex)=0
Element access operator.
virtual ~OrderedSequenceContainer()
virtual const int & valueAt(size_t sequenceIndex, size_t elementIndex) const =0
Element access operator.
OrderedSequenceContainer()
virtual std::shared_ptr< Sequence > removeSequence(size_t sequenceIndex)=0
Extract (and remove) a sequence from the container.
The Container of Ordered Values interface.
virtual const Comments & getComments(const std::string &name) const=0
Get comments of a particular sequence.
virtual void setComments(const std::string &name, const Comments &comments)=0
Set the comments of a particular sequence.
virtual std::string toString(const std::string &name) const=0
Convert a particular sequence to a string.
The SequenceContainer interface.
virtual std::shared_ptr< Sequence > removeSequence(const std::string &name)=0
Extract (and remove) a sequence from the container.
virtual const Sequence & getSequence(const std::string &name) const =0
Retrieve a sequence object from the container.
virtual void setSequence(const std::string &name, const Sequence &sequence, bool checkName)=0
Replace a sequence in the container.
virtual void setSequenceNames(const std::vector< std::string > &names, bool checkNames)=0
Set all sequence names.
virtual std::vector< std::string > getSequenceNames() const =0
Get all the names of the sequences in the container.
This alphabet is used to deal NumericAlphabet.