5 #ifndef BPP_SEQ_CONTAINER_SEQUENCEDVALUESCONTAINER_H
6 #define BPP_SEQ_CONTAINER_SEQUENCEDVALUESCONTAINER_H
10 #include "../Alphabet/Alphabet.h"
11 #include "../Commentable.h"
52 virtual std::string
toString(
const std::string& name)
const = 0;
86 virtual void setSequenceNames(
const std::vector<std::string>& names,
bool checkNames) = 0;
95 virtual double getStateValueAt(
size_t siteIndex,
const std::string& sequenceName,
int state)
const = 0;
97 virtual double operator()(
size_t siteIndex,
const std::string& sequenceName,
int state)
const = 0;
virtual void setSequenceNames(const std::vector< std::string > &names, bool checkNames)=0
Set all sequence names.
virtual const Alphabet * getAlphabet() const =0
Get container's alphabet.
virtual double operator()(size_t siteIndex, const std::string &sequenceName, int state) const =0
virtual void setComments(const std::string &name, const Comments &comments)=0
Set the comments of a particular sequence.
virtual void clear()=0
Delete all data in the container.
virtual const Comments & getComments(const std::string &name) const =0
Get comments of a particular sequence.
virtual void setGeneralComments(const Comments &comments)=0
Set the comments of this container.
virtual std::string toString(const std::string &name) const =0
Convert a particular sequence to a string.
virtual size_t getNumberOfSequences() const =0
Get the number of sequences in the container.
virtual SequencedValuesContainer * createEmptyContainer() const =0
Return a copy of this container, but with no data inside.
virtual std::vector< std::string > getSequenceNames() const =0
Get all the names of the sequences in the container.
virtual void deleteGeneralComments()=0
Delete the comments associated to this container.
virtual bool hasSequence(const std::string &name) const =0
Check if a sequence with a given name is present in the container.
virtual double getStateValueAt(size_t siteIndex, const std::string &sequenceName, int state) const =0
get value of a state in a position
virtual const Comments & getGeneralComments() const =0
Get the comments of this container.
This alphabet is used to deal NumericAlphabet.
std::vector< std::string > Comments
Declaration of Comments type.