[Seqan-dev] SA interval from indices


Hi,

After created indices (I am using indexEsa), how do you search pattern by using them? 

I only know you can create a finder based on the indices, and search pattern using finder based on the tutorial. But finder sometimes does not seems very convenient to me. Sometime I only need the occ value of the pattern, not their position, so I have to do:

    int num_cout;
    while (find(Finder, "TATAA"))
    {
        ++num_cout;
    }

And I do not think this is the right way to do it.... Is there any other way that I can get the SAInterval directly?

Thanks!

Yue Gan