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

Random-access, immutable segment storage used by the production cursor. More...

#include <automation_cursor.hpp>

Classes

class  Iterator

Public Types

using Reader = AutomationProgramSegment (*)(const void*, std::size_t) noexcept

Public Member Functions

constexpr AutomationSegmentView () noexcept=default
AutomationProgramSegment operator[] (std::size_t index) const noexcept
AutomationProgramSegment front () const noexcept
AutomationProgramSegment back () const noexcept
Iterator begin () const noexcept
Iterator end () const noexcept
std::size_t size () const noexcept
bool empty () const noexcept
AutomationSegmentView subspan (std::size_t offset, std::size_t count) const noexcept

Static Public Member Functions

template<typename Record>
static AutomationSegmentView from_records (std::span< const Record > records, Reader reader) noexcept

Detailed Description

Random-access, immutable segment storage used by the production cursor.

The reader returns a segment by value, allowing both native program records and differently packed wire records to use the same rendering algorithm.

Member Typedef Documentation

◆ Reader

using pulp::playback::AutomationSegmentView::Reader = AutomationProgramSegment (*)(const void*, std::size_t) noexcept

Constructor & Destructor Documentation

◆ AutomationSegmentView()

pulp::playback::AutomationSegmentView::AutomationSegmentView ( )
constexprdefaultnoexcept

Member Function Documentation

◆ back()

AutomationProgramSegment pulp::playback::AutomationSegmentView::back ( ) const
inlinenoexcept

◆ begin()

Iterator pulp::playback::AutomationSegmentView::begin ( ) const
inlinenoexcept

◆ empty()

bool pulp::playback::AutomationSegmentView::empty ( ) const
inlinenoexcept

◆ end()

Iterator pulp::playback::AutomationSegmentView::end ( ) const
inlinenoexcept

◆ from_records()

template<typename Record>
AutomationSegmentView pulp::playback::AutomationSegmentView::from_records ( std::span< const Record > records,
Reader reader )
inlinestaticnoexcept

◆ front()

AutomationProgramSegment pulp::playback::AutomationSegmentView::front ( ) const
inlinenoexcept

◆ operator[]()

AutomationProgramSegment pulp::playback::AutomationSegmentView::operator[] ( std::size_t index) const
inlinenoexcept

◆ size()

std::size_t pulp::playback::AutomationSegmentView::size ( ) const
inlinenoexcept

◆ subspan()

AutomationSegmentView pulp::playback::AutomationSegmentView::subspan ( std::size_t offset,
std::size_t count ) const
inlinenoexcept

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