src/Generic/patterns/PatternReturn.cpp
/**
 * Convenience method that outputs the content of a PatternReturn. Based on
 * ArgumentPattern::dump().
 *
 * @param out The ostream to which output is to be written
 * @param indent The level to which the output should be indented
 *
 * @author afrankel@bbn.com
 * @date 2010.10.18
 **/
Convenience method that outputs the content of a PatternReturn.

@param out The ostream to which output is to be written
@param indent The level to which the output should be indented


Convenience method that outputs the content of a PatternReturn . @param out The ostream to which output is to be written @param indent The level to which the output should be indented
void PatternReturn::dump(std::ostream &out, int indent) const {
	for (int i = 0; i < indent; i++) out << " ";
	out << "PatternReturn: ";
	if (!hasEmptyLabel()) {
		out << getLabel().to_debug_string();
	}
	else {
		BOOST_FOREACH(KeyValPair return_value, _return_values) {
			out << "(" << return_value.first << " " << return_value.second << ") ";
		}
		out << "\n";
	}
}
void PatternReturn :: dump ( std :: ostream & out , int indent ) const { for ( int i = 0 ; i < indent ; i ++ ) out << " " ; out << " " ; if ( ! hasEmptyLabel ( ) ) { out << getLabel ( ) . to_debug_string ( ) ; } else { BOOST_FOREACH ( KeyValPair return_value , _return_values ) { out << " " << return_value . first << " " << return_value . second << " " ; } out << " \n " ; } }
Convenience method that outputs the content of a PatternReturn.
Convenience method that outputs the content of a PatternReturn .
//for (int i = 0; i < indent; i++) out << " ";
 //for (int i = 0; i < indent; i++) out << " ";
