JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::midi_ci::RequestID Class Reference

A strongly-typed identifier for a 7-bit request ID with a nullable state. More...

#include <juce_CIPropertyExchangeCache.h>

Collaboration diagram for juce::midi_ci::RequestID:

Public Member Functions

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
 Inequality operator.
 
bool operator== (RequestID other) const
 Equality operator.
 

Static Public Member Functions

static std::optional< RequestIDcreate (std::byte value)
 Constructs a RequestID if the provided value is valid, i.e.
 
static std::optional< RequestIDcreate (uint8_t v)
 Constructs a RequestID if the provided value is valid, i.e.
 

Private Member Functions

 RequestID (uint8_t index)
 

Private Attributes

uint8_t value {}
 

Detailed Description

A strongly-typed identifier for a 7-bit request ID with a nullable state.

@tags{Audio}

Constructor & Destructor Documentation

◆ RequestID()

juce::midi_ci::RequestID::RequestID ( uint8_t  index)
inlineexplicitprivate

References jassert, and value.

Member Function Documentation

◆ asByte()

std::byte juce::midi_ci::RequestID::asByte ( ) const
inline

Returns the byte corresponding to this ID.

References value.

◆ asInt()

uint8_t juce::midi_ci::RequestID::asInt ( ) const
inline

Returns the int value of this ID.

References value.

◆ create() [1/2]

static std::optional< RequestID > juce::midi_ci::RequestID::create ( std::byte  value)
inlinestatic

Constructs a RequestID if the provided value is valid, i.e.

its most significant bit is not set. Otherwise, returns nullopt.

References create(), and value.

◆ create() [2/2]

static std::optional< RequestID > juce::midi_ci::RequestID::create ( uint8_t  v)
inlinestatic

Constructs a RequestID if the provided value is valid, i.e.

its most significant bit is not set. Otherwise, returns nullopt.

Referenced by create().

◆ operator!=()

bool juce::midi_ci::RequestID::operator!= ( RequestID  other) const
inline

Inequality operator.

References operator==().

◆ operator==()

bool juce::midi_ci::RequestID::operator== ( RequestID  other) const
inline

Equality operator.

References value.

Referenced by operator!=().

Member Data Documentation

◆ value

uint8_t juce::midi_ci::RequestID::value {}
private

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