Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::plugins::PluginSlot Class Reference

Public Types

using SlotNo = std::uint_fast8_t

Public Member Functions

 PluginSlot (PluginSlotType type, SlotNo slot)
 Construct a new Plugin Slot object for a non-instrument.
 PluginSlot (PluginSlotType type)
 Construct a new Plugin Slot object for an instrument.
bool has_slot_index () const
auto get_slot_with_index () const
auto get_slot_type_only () const
PluginSlot get_slot_after_n (PluginSlot::SlotNo n) const
size_t get_hash () const
bool is_modulator () const
bool validate_slot_type_slot_combo () const
 Verifies that slot_type and slot is a valid combination.

Friends

auto operator<=> (const PluginSlot &lhs, const PluginSlot &rhs)
bool operator== (const PluginSlot &lhs, const PluginSlot &rhs)

Detailed Description

Definition at line 24 of file plugin_slot.h.

Member Typedef Documentation

◆ SlotNo

using zrythm::plugins::PluginSlot::SlotNo = std::uint_fast8_t

Definition at line 27 of file plugin_slot.h.

Constructor & Destructor Documentation

◆ PluginSlot() [1/2]

zrythm::plugins::PluginSlot::PluginSlot ( PluginSlotType type,
SlotNo slot )
inlineexplicit

Construct a new Plugin Slot object for a non-instrument.

Definition at line 49 of file plugin_slot.h.

◆ PluginSlot() [2/2]

zrythm::plugins::PluginSlot::PluginSlot ( PluginSlotType type)
inlineexplicit

Construct a new Plugin Slot object for an instrument.

Definition at line 57 of file plugin_slot.h.

Member Function Documentation

◆ get_slot_after_n()

PluginSlot zrythm::plugins::PluginSlot::get_slot_after_n ( PluginSlot::SlotNo n) const
inline

Definition at line 78 of file plugin_slot.h.

◆ get_slot_type_only()

auto zrythm::plugins::PluginSlot::get_slot_type_only ( ) const
inline

Definition at line 69 of file plugin_slot.h.

◆ get_slot_with_index()

auto zrythm::plugins::PluginSlot::get_slot_with_index ( ) const
inline

Definition at line 61 of file plugin_slot.h.

◆ has_slot_index()

bool zrythm::plugins::PluginSlot::has_slot_index ( ) const
inline

Definition at line 59 of file plugin_slot.h.

◆ is_modulator()

bool zrythm::plugins::PluginSlot::is_modulator ( ) const
inline

Definition at line 89 of file plugin_slot.h.

◆ validate_slot_type_slot_combo()

bool zrythm::plugins::PluginSlot::validate_slot_type_slot_combo ( ) const
inline

Verifies that slot_type and slot is a valid combination.

Definition at line 94 of file plugin_slot.h.

◆ operator<=>

auto operator<=> ( const PluginSlot & lhs,
const PluginSlot & rhs )
friend

Definition at line 29 of file plugin_slot.h.

◆ operator==

bool operator== ( const PluginSlot & lhs,
const PluginSlot & rhs )
friend

Definition at line 38 of file plugin_slot.h.


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