void DNA::DelCell(const DNA& compData) { if (compData.Size())//裡面這些不要修改,影響再次量測的資料擺放 { std::vector<Nucleotide>::const_iterator dnaItor = 0, compItor; std::vector<Nucleotide>::iterator rmBeginItor(End()); for (compItor = compData.Begin(); compItor != compData.End(); ++compItor) rmBeginItor = std::remove(Begin(), rmBeginItor, *compItor); nChain.erase(rmBeginItor, End()); } }
void DNA::AddCell(const DNA& _D) { nChain.insert(End(), _D.Begin(), _D.End()); }