Question

I was going through the wiseroute example given in the omnetpp and mixim. and found the following code.

   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)

{}

Now WiseRoute() is the default constructor and it does nothing. but what does all the functions in between the function name and the body do??

Was it helpful?

Solution

It is a Member initialization list. It initializes the members of your WiseRoute class.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top