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

Identity-safe reference to a View captured across native event boundaries. More...

#include <view.hpp>

Public Member Functions

void set (View *view) noexcept
void reset () noexcept
bool has_value () const noexcept
View * live_in (View &root) const noexcept

Detailed Description

Identity-safe reference to a View captured across native event boundaries.

Capturing records the root and current structure generation while the View is known-live. live_in() is therefore O(1) until a detach invalidates that generation; only the invalidation path walks the tree. The instance id closes allocator-address reuse (ABA) after an old realm is destroyed and a replacement view lands at the same address.

Member Function Documentation

◆ has_value()

bool pulp::view::ViewCapture::has_value ( ) const
inlinenoexcept

◆ live_in()

View * pulp::view::ViewCapture::live_in ( View & root) const
noexcept

◆ reset()

void pulp::view::ViewCapture::reset ( )
noexcept

◆ set()

void pulp::view::ViewCapture::set ( View * view)
noexcept

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