Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::format::ParamSubscription Class Reference

Owns one ParamPort listener registration. More...

#include <editor_host.hpp>

Public Member Functions

 ParamSubscription ()=default
 ParamSubscription (std::function< void()> cancel) noexcept
 Adopt a registration; cancel runs exactly once, on reset or destruction.
 ParamSubscription (ParamSubscription &&other) noexcept
ParamSubscription & operator= (ParamSubscription &&other) noexcept
 ParamSubscription (const ParamSubscription &)=delete
ParamSubscription & operator= (const ParamSubscription &)=delete
 ~ParamSubscription ()
void reset () noexcept
 Remove the listener now. Idempotent.
 operator bool () const noexcept

Detailed Description

Owns one ParamPort listener registration.

Destroying it, or calling reset(), removes the listener. Move-only.

Constructor & Destructor Documentation

◆ ParamSubscription() [1/4]

pulp::format::ParamSubscription::ParamSubscription ( )
default

◆ ParamSubscription() [2/4]

pulp::format::ParamSubscription::ParamSubscription ( std::function< void()> cancel)
inlineexplicitnoexcept

Adopt a registration; cancel runs exactly once, on reset or destruction.

Port implementations construct these.

◆ ParamSubscription() [3/4]

pulp::format::ParamSubscription::ParamSubscription ( ParamSubscription && other)
inlinenoexcept

◆ ParamSubscription() [4/4]

pulp::format::ParamSubscription::ParamSubscription ( const ParamSubscription & )
delete

◆ ~ParamSubscription()

pulp::format::ParamSubscription::~ParamSubscription ( )
inline

Member Function Documentation

◆ operator bool()

pulp::format::ParamSubscription::operator bool ( ) const
inlineexplicitnoexcept

◆ operator=() [1/2]

ParamSubscription & pulp::format::ParamSubscription::operator= ( const ParamSubscription & )
delete

◆ operator=() [2/2]

ParamSubscription & pulp::format::ParamSubscription::operator= ( ParamSubscription && other)
inlinenoexcept

◆ reset()

void pulp::format::ParamSubscription::reset ( )
inlinenoexcept

Remove the listener now. Idempotent.


The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/format/include/pulp/format/editor_host.hpp