DD::Image::ChannelSetIterator Class Reference

Public Member Functions

 ChannelSetIterator (const ChannelSet &channels, bool end=false)
 
 ChannelSetIterator (const ChannelSet &channels)
 
Channeloperator++ ()
 
bool operator!= (const ChannelSetIterator &other)
 
Channeloperator* ()
 

Detailed Description

An iterator for ChannelSets. This provides just enough to support C++ ranged-for loops and no more. for ( Channel z : channels ) { ... } N.B. In particular, operator!= doesn't check that the iterators are iterating the same ChannelSet. This is because comparing a ChannelSet is slow and we want for loops to have the same performance as the old "foreach" macro.



©2020 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk