LMMS
Loading...
Searching...
No Matches
juce::universal_midi_packets::Packet< numWords > Class Template Reference

#include <juce_UMPacket.h>

Public Types

using Contents = std::array<uint32_t, numWords>
using const_iterator = typename Contents::const_iterator

Public Member Functions

 Packet ()=default
template<size_t w = numWords, typename std::enable_if< w==1, int >::type = 0>
 Packet (uint32_t a)
template<size_t w = numWords, typename std::enable_if< w==2, int >::type = 0>
 Packet (uint32_t a, uint32_t b)
template<size_t w = numWords, typename std::enable_if< w==3, int >::type = 0>
 Packet (uint32_t a, uint32_t b, uint32_t c)
template<size_t w = numWords, typename std::enable_if< w==4, int >::type = 0>
 Packet (uint32_t a, uint32_t b, uint32_t c, uint32_t d)
template<size_t w, typename std::enable_if< w==numWords, int >::type = 0>
 Packet (const std::array< uint32_t, w > &fullPacket)
Packet withMessageType (uint8_t type) const noexcept
Packet withGroup (uint8_t group) const noexcept
Packet withStatus (uint8_t status) const noexcept
Packet withChannel (uint8_t channel) const noexcept
uint8_t getMessageType () const noexcept
uint8_t getGroup () const noexcept
uint8_t getStatus () const noexcept
uint8_t getChannel () const noexcept
template<size_t index>
Packet withU4 (uint8_t value) const noexcept
template<size_t index>
Packet withU8 (uint8_t value) const noexcept
template<size_t index>
Packet withU16 (uint16_t value) const noexcept
template<size_t index>
Packet withU32 (uint32_t value) const noexcept
template<size_t index>
uint8_t getU4 () const noexcept
template<size_t index>
uint8_t getU8 () const noexcept
template<size_t index>
uint16_t getU16 () const noexcept
template<size_t index>
uint32_t getU32 () const noexcept
const_iterator begin () const noexcept
const_iterator cbegin () const noexcept
const_iterator end () const noexcept
const_iterator cend () const noexcept
const uint32_tdata () const noexcept
const uint32_tfront () const noexcept
const uint32_tback () const noexcept
const uint32_toperator[] (size_t index) const noexcept

Private Attributes

Contents contents { {} }

Detailed Description

template<size_t numWords>
class juce::universal_midi_packets::Packet< numWords >

Holds a single Universal MIDI Packet.

@tags{Audio}

Member Typedef Documentation

◆ const_iterator

template<size_t numWords>
using juce::universal_midi_packets::Packet< numWords >::const_iterator = typename Contents::const_iterator

◆ Contents

template<size_t numWords>
using juce::universal_midi_packets::Packet< numWords >::Contents = std::array<uint32_t, numWords>

Constructor & Destructor Documentation

◆ Packet() [1/6]

template<size_t numWords>
juce::universal_midi_packets::Packet< numWords >::Packet ( )
default

◆ Packet() [2/6]

template<size_t numWords>
template<size_t w = numWords, typename std::enable_if< w==1, int >::type = 0>
juce::universal_midi_packets::Packet< numWords >::Packet ( uint32_t a)
inline

◆ Packet() [3/6]

template<size_t numWords>
template<size_t w = numWords, typename std::enable_if< w==2, int >::type = 0>
juce::universal_midi_packets::Packet< numWords >::Packet ( uint32_t a,
uint32_t b )
inline

◆ Packet() [4/6]

template<size_t numWords>
template<size_t w = numWords, typename std::enable_if< w==3, int >::type = 0>
juce::universal_midi_packets::Packet< numWords >::Packet ( uint32_t a,
uint32_t b,
uint32_t c )
inline

◆ Packet() [5/6]

template<size_t numWords>
template<size_t w = numWords, typename std::enable_if< w==4, int >::type = 0>
juce::universal_midi_packets::Packet< numWords >::Packet ( uint32_t a,
uint32_t b,
uint32_t c,
uint32_t d )
inline

◆ Packet() [6/6]

template<size_t numWords>
template<size_t w, typename std::enable_if< w==numWords, int >::type = 0>
juce::universal_midi_packets::Packet< numWords >::Packet ( const std::array< uint32_t, w > & fullPacket)
inlineexplicit

Member Function Documentation

◆ back()

template<size_t numWords>
const uint32_t & juce::universal_midi_packets::Packet< numWords >::back ( ) const
inlinenoexcept

◆ begin()

template<size_t numWords>
const_iterator juce::universal_midi_packets::Packet< numWords >::begin ( ) const
inlinenoexcept

◆ cbegin()

template<size_t numWords>
const_iterator juce::universal_midi_packets::Packet< numWords >::cbegin ( ) const
inlinenoexcept

◆ cend()

template<size_t numWords>
const_iterator juce::universal_midi_packets::Packet< numWords >::cend ( ) const
inlinenoexcept

◆ data()

template<size_t numWords>
const uint32_t * juce::universal_midi_packets::Packet< numWords >::data ( ) const
inlinenoexcept

◆ end()

template<size_t numWords>
const_iterator juce::universal_midi_packets::Packet< numWords >::end ( ) const
inlinenoexcept

◆ front()

template<size_t numWords>
const uint32_t & juce::universal_midi_packets::Packet< numWords >::front ( ) const
inlinenoexcept

◆ getChannel()

template<size_t numWords>
uint8_t juce::universal_midi_packets::Packet< numWords >::getChannel ( ) const
inlinenoexcept

◆ getGroup()

template<size_t numWords>
uint8_t juce::universal_midi_packets::Packet< numWords >::getGroup ( ) const
inlinenoexcept

◆ getMessageType()

template<size_t numWords>
uint8_t juce::universal_midi_packets::Packet< numWords >::getMessageType ( ) const
inlinenoexcept

◆ getStatus()

template<size_t numWords>
uint8_t juce::universal_midi_packets::Packet< numWords >::getStatus ( ) const
inlinenoexcept

◆ getU16()

template<size_t numWords>
template<size_t index>
uint16_t juce::universal_midi_packets::Packet< numWords >::getU16 ( ) const
inlinenoexcept

◆ getU32()

template<size_t numWords>
template<size_t index>
uint32_t juce::universal_midi_packets::Packet< numWords >::getU32 ( ) const
inlinenoexcept

◆ getU4()

template<size_t numWords>
template<size_t index>
uint8_t juce::universal_midi_packets::Packet< numWords >::getU4 ( ) const
inlinenoexcept

◆ getU8()

template<size_t numWords>
template<size_t index>
uint8_t juce::universal_midi_packets::Packet< numWords >::getU8 ( ) const
inlinenoexcept

◆ operator[]()

template<size_t numWords>
const uint32_t & juce::universal_midi_packets::Packet< numWords >::operator[] ( size_t index) const
inlinenoexcept

◆ withChannel()

template<size_t numWords>
Packet juce::universal_midi_packets::Packet< numWords >::withChannel ( uint8_t channel) const
inlinenoexcept

◆ withGroup()

template<size_t numWords>
Packet juce::universal_midi_packets::Packet< numWords >::withGroup ( uint8_t group) const
inlinenoexcept

◆ withMessageType()

template<size_t numWords>
Packet juce::universal_midi_packets::Packet< numWords >::withMessageType ( uint8_t type) const
inlinenoexcept

◆ withStatus()

template<size_t numWords>
Packet juce::universal_midi_packets::Packet< numWords >::withStatus ( uint8_t status) const
inlinenoexcept

◆ withU16()

template<size_t numWords>
template<size_t index>
Packet juce::universal_midi_packets::Packet< numWords >::withU16 ( uint16_t value) const
inlinenoexcept

◆ withU32()

template<size_t numWords>
template<size_t index>
Packet juce::universal_midi_packets::Packet< numWords >::withU32 ( uint32_t value) const
inlinenoexcept

◆ withU4()

template<size_t numWords>
template<size_t index>
Packet juce::universal_midi_packets::Packet< numWords >::withU4 ( uint8_t value) const
inlinenoexcept

◆ withU8()

template<size_t numWords>
template<size_t index>
Packet juce::universal_midi_packets::Packet< numWords >::withU8 ( uint8_t value) const
inlinenoexcept

Member Data Documentation

◆ contents

template<size_t numWords>
Contents juce::universal_midi_packets::Packet< numWords >::contents { {} }
private

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