Public Member Functions | |
ChannelSetIterator (const ChannelSet &channels, bool end=false) | |
ChannelSetIterator (const ChannelSet &channels) | |
Channel & | operator++ () |
bool | operator!= (const ChannelSetIterator &other) |
Channel & | operator* () |
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.
©2021 The Foundry Visionmongers, Ltd. All Rights Reserved. |