19 #ifndef OST_SEQ_SEQUENCE_LIST_IMPL_HH
20 #define OST_SEQ_SEQUENCE_LIST_IMPL_HH
26 #include <boost/shared_ptr.hpp>
30 namespace ost {
namespace seq {
namespace impl {
45 unsigned int index =
static_cast<unsigned int>(i);
46 if (index<list_.size()) {
49 throw std::out_of_range(
"Index not covered SequenceList");
53 unsigned int index =
static_cast<unsigned int>(i);
54 if (index<list_.size()) {
57 throw std::out_of_range(
"Index not covered SequenceList");
62 int GetPos(
int seq_index,
int residue_index)
const;
80 return this->GetMaxLength()==this->GetMinLength();
94 std::vector<SequenceImplPtr> list_;
ConstIterator Begin() const
int GetCount() const
get number of sequences in list
SequenceImplPtr & GetSequence(int i)
int FindSequenceIndex(const String &name) const
SequenceListImplPtr Slice(int first, int n) const
bool SequencesHaveEqualLength() const
int GetPos(int seq_index, int residue_index) const
int GetResidueIndex(int seq_index, int pos) const
SequenceImplPtr FindSequence(const String &name) const
SequenceListImplPtr Copy() const
SequenceImplListIterator Iterator
Real GetCoverage(int seq_index) const
String ToString(int width=80) const
SequenceImplListConstIterator ConstIterator
void AddSequence(const SequenceImplPtr &sequence)
add sequence
const SequenceImplPtr & GetSequence(unsigned int i) const
ConstIterator End() const
void RemoveSequence(int index)
SequenceListImplVector::const_iterator SequenceImplListConstIterator
SequenceListImplVector::iterator SequenceImplListIterator
boost::shared_ptr< SequenceImpl > SequenceImplPtr
boost::shared_ptr< SequenceListImpl > SequenceListImplPtr
#define DLLEXPORT_OST_SEQ