ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GAlnExtend.h
(Generate patch)
# Line 560 | Line 560
560  
561   class GXBandSet:public GList<GXBand> {
562    public:
563 +   GXSeed* qmatch; //long match (mismatches allowed) if a very good match was extended well
564     int idxoffset; //global anti-diagonal->index offset (a_len-1)
565     //used to convert a diagonal to an index
566     //diagonal is always b_ofs-a_ofs, so the minimum value is -a_len+1
# Line 572 | Line 573
573        }
574     GXBandSet(int a_len, int b_len):GList<GXBand>(a_len+b_len-1, false, true, false) {
575        idxoffset=a_len-1;
576 +      qmatch=NULL;
577            //diag will range from -a_len+1 to b_len-1, so after adjustment
578            //by idxoffset we get a max of a_len+b_len-2
579        int bcount=a_len+b_len-1;
# Line 579 | Line 581
581                     this->Add(new GXBand(i-idxoffset));
582             //unsorted, this should set fList[i]
583        }
584 +   ~GXBandSet() {
585 +      delete qmatch;
586 +      }
587     void addSeed(GXSeed* seed) {
588           //MUST be unsorted !!!
589           int idx=(seed->b_ofs-seed->a_ofs)+idxoffset;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines