Staff::Staff(int n) : Object("staff-"), AttCommon() { RegisterAttClass(ATT_COMMON); Reset(); SetN(n); }
void CMSHit::RecordMatches(CLadderContainer& LadderContainer, int iMod, CMSPeak *Peaks, unsigned ModMask, CMod ModList[], int NumMod, const char *PepStart, int Searchctermproduct, int Searchb1, int TheoreticalMassIn ) { // create hitlist. note that this is deleted in the assignment operator CreateHitInfo(); // need to calculate the number of mods from mask and NumMod(?) NumModInfo = CountMods(ModMask,NumMod); ModInfo.reset(new CMSModInfo[NumModInfo]); SetTheoreticalMass() = TheoreticalMassIn; // increment thru hithist int iHitInfo(0); EMSPeakListTypes Which = Peaks->GetWhich(GetCharge()); SetM() = 0; SetSum() = 0; // scan thru each ladder int ChargeLimit(0); if (GetCharge() < Peaks->GetConsiderMult()) ChargeLimit = 1; TLadderMap::iterator Iter; LadderContainer.Begin(Iter, ChargeLimit, ChargeLimit); while(Iter != LadderContainer.SetLadderMap().end()) { RecordMatchesScan(*((*(Iter->second))[iMod]),iHitInfo, Peaks, Which, Searchb1, Searchctermproduct); LadderContainer.Next(Iter, ChargeLimit, ChargeLimit); } SetN() = (Peaks->GetPeakLists())[Which]->GetNum(); // need to make function to save the info in ModInfo RecordModInfo(ModMask, ModList, NumMod, PepStart ); }
Layer::Layer(int n) : Object("layer-"), DrawingListInterface(), ObjectListInterface(), AttNInteger(), AttTyped(), AttVisibility() { RegisterAttClass(ATT_NINTEGER); RegisterAttClass(ATT_TYPED); RegisterAttClass(ATT_VISIBILITY); // owned pointers need to be set to NULL; m_staffDefClef = NULL; m_staffDefKeySig = NULL; m_staffDefMensur = NULL; m_staffDefMeterSig = NULL; m_cautionStaffDefClef = NULL; m_cautionStaffDefKeySig = NULL; m_cautionStaffDefMensur = NULL; m_cautionStaffDefMeterSig = NULL; Reset(); SetN(n); }