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

Owned canonical collection of incremental invalidations. More...

#include <transaction.hpp>

Public Member Functions

 DirtySet (std::vector< DirtyItem > items={}, std::vector< DirtyContext > contexts={})
 Takes ownership and canonicalizes dirty records.
std::span< const DirtyItem > items () const noexcept
 Returns canonical item invalidations in stable sorted order.
std::span< const DirtyContext > contexts () const noexcept
 Returns unique context invalidations in stable sorted order.
std::size_t retained_size () const noexcept
 Returns the owned object and vector-storage size estimate.

Detailed Description

Owned canonical collection of incremental invalidations.

A DirtySet is immutable through its public API. Spans returned by accessors remain valid until the set is destroyed or replaced.

Constructor & Destructor Documentation

◆ DirtySet()

pulp::timeline::DirtySet::DirtySet ( std::vector< DirtyItem > items = {},
std::vector< DirtyContext > contexts = {} )
explicit

Takes ownership and canonicalizes dirty records.

Items are sorted by sequence, track, and item; duplicate locations are merged by OR-ing flags. Contexts are sorted and deduplicated.

Member Function Documentation

◆ contexts()

std::span< const DirtyContext > pulp::timeline::DirtySet::contexts ( ) const
inlinenoexcept

Returns unique context invalidations in stable sorted order.

◆ items()

std::span< const DirtyItem > pulp::timeline::DirtySet::items ( ) const
inlinenoexcept

Returns canonical item invalidations in stable sorted order.

◆ retained_size()

std::size_t pulp::timeline::DirtySet::retained_size ( ) const
noexcept

Returns the owned object and vector-storage size estimate.


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