Fixed-capacity, onset-ordered collection used by development operations. More...
#include <pattern_development.hpp>
Public Member Functions | |
| constexpr PatternDevelopmentError | assign (std::span< const PatternEvent > events) noexcept |
| Replaces the pattern with validated events, preserving the old value on error. | |
| constexpr PatternDevelopmentError | insert (PatternEvent event) noexcept |
| Inserts one validated event in onset order. | |
| constexpr std::size_t | size () const noexcept |
| Returns the number of stored events. | |
| constexpr bool | empty () const noexcept |
| Returns true when the pattern contains no events. | |
| constexpr std::optional< PatternEvent > | event (std::size_t index) const noexcept |
| Returns the event at an onset-ordered index, or no value when out of range. | |
| constexpr std::optional< PatternEvent > | find_id (PatternEventId id) const noexcept |
| Finds an event by stable identity. | |
| constexpr std::optional< PatternEvent > | find_onset (timebase::TickPosition onset) const noexcept |
| Finds an event at an exact timeline onset. | |
| constexpr std::size_t | anchor_count () const noexcept |
| Returns the number of mandatory anchor events. | |
| constexpr auto | operator<=> (const DevelopmentPattern &) const =default |
Static Public Attributes | |
| static constexpr std::size_t | capacity = MaxEvents |
| Maximum number of events the pattern can hold. | |
Fixed-capacity, onset-ordered collection used by development operations.
|
inlineconstexprnoexcept |
Returns the number of mandatory anchor events.
|
inlinenodiscardconstexprnoexcept |
Replaces the pattern with validated events, preserving the old value on error.
|
inlineconstexprnoexcept |
Returns true when the pattern contains no events.
|
inlinenodiscardconstexprnoexcept |
Returns the event at an onset-ordered index, or no value when out of range.
|
inlinenodiscardconstexprnoexcept |
Finds an event by stable identity.
|
inlinenodiscardconstexprnoexcept |
Finds an event at an exact timeline onset.
|
inlinenodiscardconstexprnoexcept |
Inserts one validated event in onset order.
|
constexprdefault |
|
inlineconstexprnoexcept |
Returns the number of stored events.
|
staticconstexpr |
Maximum number of events the pattern can hold.