Esempio n. 1
0
void CMSPeakList::Sort(EMSPeakListSort SortType)
{
    if(SortType == eMSPeakListSortMZ &&
        GetSorted() != eMSPeakListSortMZ) {
        sort(GetMZI(),GetMZI() + GetNum(), CMZICompare());
        SetSorted() = eMSPeakListSortMZ;
    }
    else if(SortType == eMSPeakListSortIntensity &&
              GetSorted() != eMSPeakListSortIntensity) {
        sort(GetMZI(),GetMZI() + GetNum(), CMZICompareIntensity());
        SetSorted() = eMSPeakListSortIntensity;
    }
}
Esempio n. 2
0
void CMSPeakList::CreateLists(int Size)
{
    SetSorted() = eMSPeakListSortNone;
    SetNum() = Size;
    SetMZI(new CMZI[Size]);
}
Esempio n. 3
0
CUrlTree::CUrlTree(void) : m_Progress(10, false) {
    SetSorted(true);
    SetUnique(true);
    m_Insens = false;
}