Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
LV2PortUIStates Class Reference

#include <LV2Ports.h>

Collaboration diagram for LV2PortUIStates:
[legend]

Public Member Functions

 LV2PortUIStates (const LV2PortStates &states, const LV2Ports &ports)
 

Public Attributes

LV2AtomPortStatePtr mControlIn
 
LV2AtomPortStatePtr mControlOut
 
LV2ControlPortStateArray mControlPortStates
 

Detailed Description

Definition at line 299 of file LV2Ports.h.

Constructor & Destructor Documentation

◆ LV2PortUIStates()

LV2PortUIStates::LV2PortUIStates ( const LV2PortStates states,
const LV2Ports ports 
)

Definition at line 429 of file LV2Ports.cpp.

431{
432 // Ignore control designation if one of them is missing
433 if (ports.mControlInIdx && ports.mControlOutIdx) {
434 mControlIn = portStates.mAtomPortStates[*ports.mControlInIdx];
435 mControlOut = portStates.mAtomPortStates[*ports.mControlOutIdx];
436 }
437
438 for (auto &controlPort : ports.mControlPorts) {
439 auto &state = mControlPortStates.emplace_back(controlPort);
440 state.mLo = controlPort->mMin;
441 state.mHi = controlPort->mMax;
442 state.mLst = controlPort->mDef;
443 }
444}
LV2AtomPortStatePtr mControlIn
Definition: LV2Ports.h:302
LV2ControlPortStateArray mControlPortStates
Definition: LV2Ports.h:304
LV2AtomPortStatePtr mControlOut
Definition: LV2Ports.h:303
std::optional< size_t > mControlInIdx
Definition: LV2Ports.h:276
LV2ControlPortArray mControlPorts
Definition: LV2Ports.h:283
std::optional< size_t > mControlOutIdx
Definition: LV2Ports.h:277

References LV2PortStates::mAtomPortStates, mControlIn, LV2Ports::mControlInIdx, mControlOut, LV2Ports::mControlOutIdx, LV2Ports::mControlPorts, and mControlPortStates.

Member Data Documentation

◆ mControlIn

LV2AtomPortStatePtr LV2PortUIStates::mControlIn

Definition at line 302 of file LV2Ports.h.

Referenced by LV2PortUIStates(), and LV2Validator::suil_port_write().

◆ mControlOut

LV2AtomPortStatePtr LV2PortUIStates::mControlOut

Definition at line 303 of file LV2Ports.h.

Referenced by LV2PortUIStates().

◆ mControlPortStates

LV2ControlPortStateArray LV2PortUIStates::mControlPortStates

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