A 28-bit ID that uniquely identifies a device taking part in a series of MIDI-CI transactions.
Public Member Functions | |
| constexpr uint32_t | get () const |
| Returns the ID as a plain integer. | |
| bool | operator== (const MUID other) const |
| bool | operator!= (const MUID other) const |
| bool | operator< (const MUID other) const |
Static Public Member Functions | |
| static MUID | makeUnchecked (uint32_t v) |
| Converts the provided integer to a MUID without validation that it is within the allowed range. | |
| static std::optional< MUID > | make (uint32_t v) |
| Returns a MUID if the provided value is within the valid range for MUID values; otherwise returns nullopt. | |
| static MUID | makeRandom (Random &r) |
| Makes a random MUID using the provided random engine. | |
| static constexpr MUID | getBroadcast () |
| Returns the special MUID representing the broadcast address. | |
|
inlineconstexpr |
Returns the ID as a plain integer.
|
inlinestatic |
Converts the provided integer to a MUID without validation that it is within the allowed range.
References jassert.
Referenced by make(), and makeRandom().
|
inlinestatic |
Returns a MUID if the provided value is within the valid range for MUID values; otherwise returns nullopt.
References makeUnchecked().
Makes a random MUID using the provided random engine.
References makeUnchecked(), and juce::Random::nextInt().
|
inline |
|
inline |
|
inline |