// // ExtractedRule.cpp // extract // // Created by Hieu Hoang on 13/09/2011. // Copyright 2011 __MyCompanyName__. All rights reserved. // #include "ExtractedRule.h" using namespace std; void ExtractedRule::OutputNTLengths(std::ostream &out) const { ostringstream outString; OutputNTLengths(outString); out << outString; } void ExtractedRule::OutputNTLengths(std::ostringstream &outString) const { std::map >::const_iterator iter; for (iter = m_ntLengths.begin(); iter != m_ntLengths.end(); ++iter) { size_t sourcePos = iter->first; const std::pair &spanLengths = iter->second; outString << sourcePos << "=" << spanLengths.first << "," <