|
LMMS
|
#include <juce_MidiBuffer.h>
Public Types | |
| using | difference_type = std::iterator_traits<Ptr>::difference_type |
| using | value_type = MidiMessageMetadata |
| using | reference = MidiMessageMetadata |
| using | pointer = void |
| using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
| MidiBufferIterator ()=default | |
| MidiBufferIterator (const uint8 *dataIn) noexcept | |
| MidiBufferIterator & | operator++ () noexcept |
| MidiBufferIterator | operator++ (int) noexcept |
| bool | operator== (const MidiBufferIterator &other) const noexcept |
| bool | operator!= (const MidiBufferIterator &other) const noexcept |
| reference | operator* () const noexcept |
Private Types | |
| using | Ptr = const uint8* |
Private Attributes | |
| Ptr | data = nullptr |
An iterator to move over contiguous raw MIDI data, which Allows iterating over a MidiBuffer using C++11 range-for syntax.
In the following example, we log all three-byte messages in a midi buffer.
@tags{Audio}
| using juce::MidiBufferIterator::difference_type = std::iterator_traits<Ptr>::difference_type |
| using juce::MidiBufferIterator::iterator_category = std::input_iterator_tag |
| using juce::MidiBufferIterator::pointer = void |
| using juce::MidiBufferIterator::reference = MidiMessageMetadata |
| using juce::MidiBufferIterator::value_type = MidiMessageMetadata |
|
default |
Constructs an iterator pointing at the message starting at the byte dataIn. dataIn must point to the start of a valid MIDI message. If it does not, calling other member functions on the iterator will result in undefined behaviour.
|
inlinenoexcept |
Return false if this iterator points to the same message as another iterator instance, otherwise returns true.
|
noexcept |
Return an instance of MidiMessageMetadata which describes the message to which the iterator is currently pointing.
|
noexcept |
Make this iterator point to the next message in the buffer.
|
noexcept |
Create a copy of this object, make this iterator point to the next message in the buffer, then return the copy.
|
inlinenoexcept |
Return true if this iterator points to the same message as another iterator instance, otherwise return false.