not left,count. this made the getSubsequence rather wrong when the
'right' side was being used as a count.
SequenceLocation::SequenceLocation(
const boost::shared_ptr<Sequence> s,
int l,
SequenceLocation::SequenceLocation(
const boost::shared_ptr<Sequence> s,
int l,
) : sequence(s),
left(l),
) : sequence(s),
left(l),
{
}
SequenceLocation::SequenceLocation(
const Sequence& s,
int l,
{
}
SequenceLocation::SequenceLocation(
const Sequence& s,
int l,
{
boost::shared_ptr<Sequence> copy(new Sequence(s));
sequence = copy;
{
boost::shared_ptr<Sequence> copy(new Sequence(s));
sequence = copy;
SequenceLocation::SequenceLocation(const SequenceLocation& o)
: sequence(o.sequence),
left(o.left),
SequenceLocation::SequenceLocation(const SequenceLocation& o)
: sequence(o.sequence),
left(o.left),
{
if (this != &o) {
sequence = o.sequence;
{
if (this != &o) {
sequence = o.sequence;
- left = o.left;
- count = o.count;
+ left = o.getLeft();
+ right = o.getRight();
Sequence SequenceLocation::getSelectedSequence() const
{
Sequence SequenceLocation::getSelectedSequence() const
{
- return sequence->subseq(left, count);
+ return sequence->subseq(getLeft(), getCount());
}
void SequenceLocation::setLeft(int l)
}
void SequenceLocation::setLeft(int l)
void SequenceLocation::setCount(int c)
{
void SequenceLocation::setCount(int c)
{
}
int SequenceLocation::getCount() const
{
}
int SequenceLocation::getCount() const
{
}
void SequenceLocation::setRight(int r)
{
}
void SequenceLocation::setRight(int r)
{
}
int SequenceLocation::getRight() const
{
}
int SequenceLocation::getRight() const
{
//! convenience structure for holding selected track segments
class SequenceLocation {
public:
//! convenience structure for holding selected track segments
class SequenceLocation {
public:
- SequenceLocation(boost::shared_ptr<Sequence> s, int l, int c);
- SequenceLocation(const Sequence& s, int l, int c);
+ SequenceLocation(boost::shared_ptr<Sequence> s, int l, int r);
+ SequenceLocation(const Sequence& s, int l, int r);
SequenceLocation(const SequenceLocation& );
SequenceLocation& operator=(const SequenceLocation&);
SequenceLocation(const SequenceLocation& );
SequenceLocation& operator=(const SequenceLocation&);
int getLeft() const;
void setCount(int c);
int getCount() const ;
int getLeft() const;
void setCount(int c);
int getCount() const ;
+ //! set one past the right-most base
void setRight(int r);
int getRight() const;
private:
boost::shared_ptr<Sequence> sequence;
int left;
void setRight(int r);
int getRight() const;
private:
boost::shared_ptr<Sequence> sequence;
int left;