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

Canonical ownership and ancestor coordinates for one project identity. More...

#include <model.hpp>

Public Member Functions

constexpr ItemLocation () noexcept=default
constexpr ItemLocation (ItemKind item_kind, ItemId parent, ItemId sequence, ItemId track, ItemId clip, bool is_active) noexcept
 Creates one canonical location from its kind, immediate owner, ancestors, and state.
constexpr bool has_same_owner (const ItemLocation &other) const noexcept
 Returns whether two locations have the same kind and immediate owner.
constexpr auto operator<=> (const ItemLocation &) const =default

Public Attributes

ItemKind kind = ItemKind::Project
ItemId parent_id
ItemId sequence_id
ItemId track_id
ItemId clip_id
bool active = false

Detailed Description

Canonical ownership and ancestor coordinates for one project identity.

Constructor & Destructor Documentation

◆ ItemLocation() [1/2]

pulp::timeline::ItemLocation::ItemLocation ( )
constexprdefaultnoexcept

◆ ItemLocation() [2/2]

pulp::timeline::ItemLocation::ItemLocation ( ItemKind item_kind,
ItemId parent,
ItemId sequence,
ItemId track,
ItemId clip,
bool is_active )
inlineconstexprnoexcept

Creates one canonical location from its kind, immediate owner, ancestors, and state.

Member Function Documentation

◆ has_same_owner()

bool pulp::timeline::ItemLocation::has_same_owner ( const ItemLocation & other) const
inlineconstexprnoexcept

Returns whether two locations have the same kind and immediate owner.

◆ operator<=>()

auto pulp::timeline::ItemLocation::operator<=> ( const ItemLocation & ) const
constexprdefault

Member Data Documentation

◆ active

bool pulp::timeline::ItemLocation::active = false

◆ clip_id

ItemId pulp::timeline::ItemLocation::clip_id

◆ kind

ItemKind pulp::timeline::ItemLocation::kind = ItemKind::Project

◆ parent_id

ItemId pulp::timeline::ItemLocation::parent_id

◆ sequence_id

ItemId pulp::timeline::ItemLocation::sequence_id

◆ track_id

ItemId pulp::timeline::ItemLocation::track_id

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