display number of basepairs copied
[mussa.git] / alg / sequence_location.hpp
index 3aca443b4164352817ff84e5edfb7e6abe6477e5..b8c6e9c4549dc9258585e25757e484029f61ac15 100644 (file)
@@ -7,6 +7,8 @@
 //! convenience structure for holding selected track segments
 class SequenceLocation {
   public:
+    typedef size_t size_type;
+    
     SequenceLocation(boost::shared_ptr<Sequence> s, int l, int r);
     SequenceLocation(const Sequence& s, int l, int r);
     SequenceLocation(const SequenceLocation& );
@@ -18,12 +20,14 @@ class SequenceLocation {
     Sequence getSelectedSequence() const;
     void setLeft(int l);
     int getLeft() const;
-    void setCount(int c);
-    int getCount() const ;
+    void setCount(size_type c);
+    size_type getCount() const;
     //! set one past the right-most base 
     void setRight(int r);
     int getRight() const;
 
+    //! return total length of region (alias for getCount())
+    size_type size() const;
   private:
     boost::shared_ptr<Sequence> sequence;
     int left;