/*public*/ void MCIndexSegmentSetMutualIntersector::process(SegmentString::ConstVect* segStrings) { processCounter = indexCounter + 1; nOverlaps = 0; monoChains.clear(); for(SegmentString::ConstVect::size_type i = 0, n = segStrings->size(); i < n; i++) { SegmentString* seg = (SegmentString*)((*segStrings)[i]); addToMonoChains(seg); } intersectChains(); }
/*public*/ void MCIndexSegmentSetMutualIntersector::process(SegmentString::ConstVect * segStrings) { processCounter = indexCounter + 1; nOverlaps = 0; for (MonoChains::iterator i = monoChains.begin(), e = monoChains.end(); i != e; i++) { delete *i; } monoChains.clear(); for (SegmentString::ConstVect::size_type i = 0, n = segStrings->size(); i < n; i++) { SegmentString * seg = (SegmentString *)((*segStrings)[i]); addToMonoChains( seg); } intersectChains(); }