user1184856
user1184856

Reputation: 5

Constructor in omnetpp project

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??

Upvotes: 0

Views: 204

Answers (1)

Alok Save
Alok Save

Reputation: 206528

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

Upvotes: 1

Related Questions