2012-03-01 77 views
0

我正在浏览omnetpp和mixim中给出的wiseroute示例。 并找到下面的代码。omnetpp项目中的构造函数

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()是默认的构造函数,它什么都不做。但是函数名和body之间的所有函数都做了什么?

+0

可能重复[这是什么奇怪的冒号成员语法在构造?](http://stackoverflow.com/questions/1711990/what-is-this-weird-colon-member-syntax-in-the -constructor) – 2012-03-01 11:42:28

回答