ns-allinone-2.35/olsr/OLSR_rtable.cc
void
OLSR_rtable::clear() {
	// Iterates over the routing table deleting each OLSR_rt_entry*.
	for (rtable_t::iterator it = rt_.begin(); it != rt_.end(); it++)
		delete (*it).second;

	// Cleans routing table.
	rt_.clear();
}
///
/// \brief Clears the routing table and frees the memory assigned to each one of its entries.
///
\brief Clears the routing table and frees the memory assigned to each one of its entries.
\ brief Clears the routing table and frees the memory assigned to each one of its entries .
void
OLSR_rtable::clear() {
	for (rtable_t::iterator it = rt_.begin(); it != rt_.end(); it++)
		delete (*it).second;
	rt_.clear();
}
void OLSR_rtable :: clear ( ) { for ( rtable_t :: iterator it = rt_ . begin ( ) ; it != rt_ . end ( ) ; it ++ ) delete ( * it ) . second ; rt_ . clear ( ) ; }
\brief Clears the routing table and frees the memory assigned to each one of its entries.
\ brief Clears the routing table and frees the memory assigned to each one of its entries .
// Iterates over the routing table deleting each OLSR_rt_entry*. // Cleans routing table.