A strongly-typed identifier for a 7-bit request ID with a nullable state.
More...
#include <juce_CIPropertyExchangeCache.h>
|
std::byte | asByte () const |
| Returns the byte corresponding to this ID.
|
|
uint8_t | asInt () const |
| Returns the int value of this ID.
|
|
bool | operator== (RequestID other) const |
| Equality operator.
|
|
bool | operator!= (RequestID other) const |
| Inequality operator.
|
|
A strongly-typed identifier for a 7-bit request ID with a nullable state.
◆ create() [1/2]
static std::optional< RequestID > midi_ci::RequestID::create |
( |
uint8_t | v | ) |
|
|
static |
Constructs a RequestID if the provided value is valid, i.e.
its most significant bit is not set. Otherwise, returns nullopt.
Referenced by create().
◆ create() [2/2]
static std::optional< RequestID > midi_ci::RequestID::create |
( |
std::byte | value | ) |
|
|
static |
Constructs a RequestID if the provided value is valid, i.e.
its most significant bit is not set. Otherwise, returns nullopt.
References create().
◆ asByte()
std::byte midi_ci::RequestID::asByte |
( |
| ) |
const |
Returns the byte corresponding to this ID.
◆ asInt()
uint8_t midi_ci::RequestID::asInt |
( |
| ) |
const |
Returns the int value of this ID.
◆ operator==()
bool midi_ci::RequestID::operator== |
( |
RequestID | other | ) |
const |
◆ operator!=()
bool midi_ci::RequestID::operator!= |
( |
RequestID | other | ) |
const |
The documentation for this class was generated from the following file: