ns-allinone-2.35/olsr/OLSR_printer.cc
void
OLSR_printer::print_mprset(Trace* out, mprset_t& mprset) {
	sprintf(out->pt_->buffer(), "P\tnb");
	printf("P\tnb\n");
	out->pt_->dump();
	for (mprset_t::iterator it = mprset.begin(); it != mprset.end(); it++) {
		sprintf(out->pt_->buffer(), "P\t%d", OLSR::node_id(*it));
		printf("P\t%d\n", OLSR::node_id(*it));
		out->pt_->dump();
	}
}
///
/// \brief Prints a given MPR Set into a given trace file.
///
/// \param out		Trace where the MPR Set is going to be written.
/// \param mprset	MPR Set to be written.
///
\brief Prints a given MPR Set into a given trace file.
\param out             Trace where the MPR Set is going to be written.
\param mprset  MPR Set to be written.
\ brief Prints a given MPR Set into a given trace file . \ param out Trace where the MPR Set is going to be written . \ param mprset MPR Set to be written .
void
OLSR_printer::print_mprset(Trace* out, mprset_t& mprset) {
	sprintf(out->pt_->buffer(), "P\tnb");
	printf("P\tnb\n");
	out->pt_->dump();
	for (mprset_t::iterator it = mprset.begin(); it != mprset.end(); it++) {
		sprintf(out->pt_->buffer(), "P\t%d", OLSR::node_id(*it));
		printf("P\t%d\n", OLSR::node_id(*it));
		out->pt_->dump();
	}
}
void OLSR_printer :: print_mprset ( Trace * out , mprset_t & mprset ) { sprintf ( out -> pt_ -> buffer ( ) , " \t " ) ; printf ( " \t \n " ) ; out -> pt_ -> dump ( ) ; for ( mprset_t :: iterator it = mprset . begin ( ) ; it != mprset . end ( ) ; it ++ ) { sprintf ( out -> pt_ -> buffer ( ) , " \t " , OLSR :: node_id ( * it ) ) ; printf ( " \t \n " , OLSR :: node_id ( * it ) ) ; out -> pt_ -> dump ( ) ; } }
\brief Prints a given MPR Set into a given trace file.
\ brief Prints a given MPR Set into a given trace file .