Audacity 3.2.0
Classes | Public Member Functions | Public Attributes | List of all members
RealtimeEffectState::AccessState::FromMainSlot Struct Reference
Collaboration diagram for RealtimeEffectState::AccessState::FromMainSlot:
[legend]

Classes

struct  Message
 
struct  Reader
 
struct  ShortMessage
 

Public Member Functions

 FromMainSlot ()=default
 
 FromMainSlot (const EffectSettings &settings, const EffectInstance::Message *pMessage)
 
FromMainSlotoperator= (FromMainSlot &&)=default
 
FromMainSlotoperator= (Message &&message)
 
FromMainSlotoperator= (ShortMessage &&message)
 

Public Attributes

Message mMessage
 

Detailed Description

Definition at line 120 of file RealtimeEffectState.cpp.

Constructor & Destructor Documentation

◆ FromMainSlot() [1/2]

RealtimeEffectState::AccessState::FromMainSlot::FromMainSlot ( )
default

◆ FromMainSlot() [2/2]

RealtimeEffectState::AccessState::FromMainSlot::FromMainSlot ( const EffectSettings settings,
const EffectInstance::Message pMessage 
)
inlineexplicit

Definition at line 131 of file RealtimeEffectState.cpp.

134 : mMessage{ settings, 0, pMessage ? pMessage->Clone() : nullptr }
135 {}
static Settings & settings()
Definition: TrackInfo.cpp:51
virtual std::unique_ptr< Message > Clone() const =0

Member Function Documentation

◆ operator=() [1/3]

FromMainSlot & RealtimeEffectState::AccessState::FromMainSlot::operator= ( FromMainSlot &&  )
default

◆ operator=() [2/3]

FromMainSlot & RealtimeEffectState::AccessState::FromMainSlot::operator= ( Message &&  message)
inline

Definition at line 139 of file RealtimeEffectState.cpp.

139 {
140 mMessage.SettingsAndCounter::swap(message);
141 if (message.pMessage && mMessage.pMessage)
142 // Merge the incoming message with any still unconsumed message
143 mMessage.pMessage->Merge(std::move(*message.pMessage));
144 return *this;
145 }
std::unique_ptr< EffectInstance::Message > pMessage

References mMessage, and RealtimeEffectState::AccessState::FromMainSlot::Message::pMessage.

◆ operator=() [3/3]

FromMainSlot & RealtimeEffectState::AccessState::FromMainSlot::operator= ( ShortMessage &&  message)
inline

Definition at line 148 of file RealtimeEffectState.cpp.

148 {
149 mMessage.counter = message.counter;
150 if (message.pMessage && mMessage.pMessage)
151 // Merge the incoming message with any still unconsumed message
152 mMessage.pMessage->Merge(std::move(*message.pMessage));
153 return *this;
154 }

References RealtimeEffectState::SettingsAndCounter::counter, mMessage, and RealtimeEffectState::AccessState::FromMainSlot::Message::pMessage.

Member Data Documentation

◆ mMessage

Message RealtimeEffectState::AccessState::FromMainSlot::mMessage

Definition at line 173 of file RealtimeEffectState.cpp.

Referenced by operator=().


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