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)
 
 LV2PortUIStates (const LV2PortUIStates &)=delete
 
LV2PortUIStatesoperator= (const LV2PortUIStates &)=delete
 

Public Attributes

LV2AtomPortStatePtr mControlIn
 
LV2AtomPortStatePtr mControlOut
 
LV2ControlPortStateArray mControlPortStates
 

Detailed Description

Definition at line 302 of file LV2Ports.h.

Constructor & Destructor Documentation

◆ LV2PortUIStates() [1/2]

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:308
LV2ControlPortStateArray mControlPortStates
Definition: LV2Ports.h:310
LV2AtomPortStatePtr mControlOut
Definition: LV2Ports.h:309
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.

◆ LV2PortUIStates() [2/2]

LV2PortUIStates::LV2PortUIStates ( const LV2PortUIStates )
delete

Member Function Documentation

◆ operator=()

LV2PortUIStates & LV2PortUIStates::operator= ( const LV2PortUIStates )
delete

Member Data Documentation

◆ mControlIn

LV2AtomPortStatePtr LV2PortUIStates::mControlIn

Definition at line 308 of file LV2Ports.h.

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

◆ mControlOut

LV2AtomPortStatePtr LV2PortUIStates::mControlOut

Definition at line 309 of file LV2Ports.h.

Referenced by LV2PortUIStates().

◆ mControlPortStates

LV2ControlPortStateArray LV2PortUIStates::mControlPortStates

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