#include <MIDI_Interfaces/BLEMIDI/MIDIMessageQueue.hpp>
Definition at line 10 of file MIDIMessageQueue.hpp.
Classes | |
struct | MIDIMessageQueueElement |
Public Types | |
using | storage_t = std::vector< MIDIMessageQueueElement > |
using | iter_t = storage_t::iterator |
Public Member Functions | |
MIDIMessageQueue (size_t capacity) | |
bool | push (ChannelMessage message, uint16_t timestamp) |
bool | push (SysCommonMessage message, uint16_t timestamp) |
bool | push (RealTimeMessage message, uint16_t timestamp) |
bool | push (SysExMessage message, uint16_t timestamp) |
bool | pop (MIDIMessageQueueElement &message) |
Private Member Functions | |
bool | push (MIDIMessageQueueElement &&message) |
void | inc (iter_t &it) |
Private Attributes | |
storage_t | storage = storage_t(64) |
iter_t | write_p = storage.begin() |
iter_t | read_p = storage.begin() |
std::atomic_size_t | size {0} |
using storage_t = std::vector<MIDIMessageQueueElement> |
Definition at line 58 of file MIDIMessageQueue.hpp.
using iter_t = storage_t::iterator |
Definition at line 59 of file MIDIMessageQueue.hpp.
|
inline |
Definition at line 12 of file MIDIMessageQueue.hpp.
bool push | ( | ChannelMessage | message, |
uint16_t | timestamp | ||
) |
bool push | ( | SysCommonMessage | message, |
uint16_t | timestamp | ||
) |
bool push | ( | RealTimeMessage | message, |
uint16_t | timestamp | ||
) |
bool push | ( | SysExMessage | message, |
uint16_t | timestamp | ||
) |
bool pop | ( | MIDIMessageQueueElement & | message | ) |
|
private |
|
inlineprivate |
Definition at line 77 of file MIDIMessageQueue.hpp.
Definition at line 70 of file MIDIMessageQueue.hpp.
|
private |
Definition at line 71 of file MIDIMessageQueue.hpp.
|
private |
Definition at line 72 of file MIDIMessageQueue.hpp.
|
private |
Definition at line 73 of file MIDIMessageQueue.hpp.