我正在浏览omnetpp和mixim中给出的wiseroute示例。 并找到了以下代码。
WiseRoute(): BaseNetwLayer()
, routeTable()
, floodTable()
, headerLength(0)
, macaddress()
, sinkAddress()
, useSimTracer(false)
, rssiThreshold(0)
, routeFloodsInterval(0)
, floodSeqNumber(0)
, tracer(NULL)
, routeFloodTimer(NULL)
, nbDataPacketsForwarded(0)
, nbDataPacketsReceived(0)
, nbDataPacketsSent(0)
, nbDuplicatedFloodsReceived(0)
, nbFloodsSent(0)
, nbPureUnicastSent(0)
, nbRouteFloodsSent(0)
, nbRouteFloodsReceived(0)
, nbUnicastFloodForwarded(0)
, nbPureUnicastForwarded(0)
, nbGetRouteFailures(0)
, nbRoutesRecorded(0)
, nbHops(0)
, receivedRSSI()
, routeRSSI()
, allReceivedRSSI()
, allReceivedBER()
, routeBER()
, receivedBER()
, nextHopSelectionForSink()
, trace(false), stats(false), debug(false)
{}
现在WiseRoute()是默认构造函数,它什么都不做。但是函数名和正文之间的所有函数都做了什么?