don't seqcomp sequences that are too small
[mussa.git] / alg / flp.hpp
index 8e7dbb9eba1e8318233b6c0f48befef9789858e3..9b561874fbb1572c895fd15cc6542fc0dd52d963 100644 (file)
@@ -28,6 +28,8 @@ class Sequence;
 class FLPs
 {
 public:
+    typedef size_t size_type;
+    
     FLPs();
     FLPs(const FLPs& );
     //! Setup a FLP and reserve space for the match lists
@@ -90,7 +92,10 @@ public:
     /*! this is mostly so seqcomp can use operator[]
      */
     void alloc_matches(std::string::size_type len1=0);
-
+    
+    //! make sure that a sequence is acceptable to seqcomp
+    void validate_sequence(const Sequence&) const;
+    
     //! current loop index
     int seqcomp_i;
     //! end seqcomp index (when terminating, seqcomp_i == seqcomp_end.