Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::MidiEventBuffer::Iterator Class Reference

Forward iterator over packed events. More...

#include <src/dsp/midi_event_buffer.h>

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = MidiEventView
using difference_type = std::ptrdiff_t
using pointer = void
using reference = MidiEventView

Public Member Functions

 Iterator (const midi_byte_t *ptr, const midi_byte_t *end) noexcept
MidiEventView operator* () const noexcept
Iterator & operator++ () noexcept
Iterator operator++ (int) noexcept
bool operator== (const Iterator &other) const noexcept

Detailed Description

Forward iterator over packed events.

Yields MidiEventView on dereference. Reads the size field to advance to the next event.

Definition at line 104 of file midi_event_buffer.h.

Member Typedef Documentation

◆ difference_type

using zrythm::dsp::MidiEventBuffer::Iterator::difference_type = std::ptrdiff_t

Definition at line 109 of file midi_event_buffer.h.

◆ iterator_category

using zrythm::dsp::MidiEventBuffer::Iterator::iterator_category = std::forward_iterator_tag

Definition at line 107 of file midi_event_buffer.h.

◆ pointer

using zrythm::dsp::MidiEventBuffer::Iterator::pointer = void

Definition at line 110 of file midi_event_buffer.h.

◆ reference

using zrythm::dsp::MidiEventBuffer::Iterator::reference = MidiEventView

Definition at line 111 of file midi_event_buffer.h.

◆ value_type

using zrythm::dsp::MidiEventBuffer::Iterator::value_type = MidiEventView

Definition at line 108 of file midi_event_buffer.h.

Constructor & Destructor Documentation

◆ Iterator()

zrythm::dsp::MidiEventBuffer::Iterator::Iterator ( const midi_byte_t * ptr,
const midi_byte_t * end )
inlinenoexcept

Definition at line 114 of file midi_event_buffer.h.

Member Function Documentation

◆ operator*()

MidiEventView zrythm::dsp::MidiEventBuffer::Iterator::operator* ( ) const
inlinenoexcept

Definition at line 119 of file midi_event_buffer.h.

◆ operator++() [1/2]

Iterator & zrythm::dsp::MidiEventBuffer::Iterator::operator++ ( )
inlinenoexcept

Definition at line 129 of file midi_event_buffer.h.

◆ operator++() [2/2]

Iterator zrythm::dsp::MidiEventBuffer::Iterator::operator++ ( int )
inlinenoexcept

Definition at line 138 of file midi_event_buffer.h.

◆ operator==()

bool zrythm::dsp::MidiEventBuffer::Iterator::operator== ( const Iterator & other) const
inlinenoexcept

Definition at line 145 of file midi_event_buffer.h.


The documentation for this class was generated from the following file: