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; } }
void CMSPeakList::CreateLists(int Size) { SetSorted() = eMSPeakListSortNone; SetNum() = Size; SetMZI(new CMZI[Size]); }
CUrlTree::CUrlTree(void) : m_Progress(10, false) { SetSorted(true); SetUnique(true); m_Insens = false; }