This question arose while studying NS-3 codes. There is a for loop as below
enter code here
for (NetDeviceContainer::Iterator i = periDevice.Begin ();
i != periDevice.End ();
i++)
{
(*i)->GetObject<BleNetDevice> ()->GetLinkLayer ()->SetAdvInterval (Time("1s"));
(*i)->GetObject<BleNetDevice> ()->GetLinkLayer ()->SetRole (BleLinkLayer::ADVERTISER);
(*i)->GetObject<BleNetDevice> ()->GetLinkLayer ()->SetAdvMode (BleLinkLayer::GENERAL_ADV);
}
What is the meaning of above code?
What is Iterator ?
What is (*i)->xxx ?
Which c++ concept is used here.
Thank you in advance.