understanding code in c++ : <p>This question arose while studying NS-3 codes. There is a for loop as below</p>

<pre><code>enter code here

for (NetDeviceContainer::Iterator i = periDevice.Begin ();
                                i != periDevice.End ();
                                i++)
{
  (*i)-&gt;GetObject&lt;BleNetDevice&gt; ()-&gt;GetLinkLayer ()-&gt;SetAdvInterval (Time("1s"));

  (*i)-&gt;GetObject&lt;BleNetDevice&gt; ()-&gt;GetLinkLayer ()-&gt;SetRole (BleLinkLayer::ADVERTISER);
  (*i)-&gt;GetObject&lt;BleNetDevice&gt; ()-&gt;GetLinkLayer ()-&gt;SetAdvMode (BleLinkLayer::GENERAL_ADV);
}
</code></pre>

<p>What is the meaning of above code?<br>
What is Iterator ? 
What is (*i)->xxx ? </p>

<p>Which c++ concept is used here.</p>

<p>Thank you in advance. </p>
