keep track of how far through a seqcomp we've gotten
[mussa.git] / alg / flp.hpp
index 4951213968b039330999e6d4e6c427719fa1545a..75298a4f827def1ab50367089b20b289d5a85f02 100644 (file)
@@ -63,6 +63,11 @@ public:
     void save(boost::filesystem::path save_file_path);
     //! Load a vector of a lists of FLPs
     void load(boost::filesystem::path file_path);
+
+    //! how far we are through current seqcomp
+    float progress() const;
+
+    const static int seqcomp_not_running = -1;
   private:
     //! the number of base pairs in the sliding window
     int window_size;
@@ -85,6 +90,10 @@ public:
      */
     void alloc_matches(std::string::size_type len1=0);
 
-
+    //! current loop index
+    int seqcomp_i;
+    //! end seqcomp index (when terminating, seqcomp_i == seqcomp_end.
+    //! when not running seqcomp_i == seqcomp_end == seqcomp_not_running
+    int seqcomp_end;
 };
 #endif