Named positive-duration span on a sequence's musical timeline. More...
#include <model.hpp>
Public Member Functions | |
| auto | operator<=> (const SequenceRegion &) const =default |
| Compares every authored member, role included. | |
Public Attributes | |
| ItemId | id |
| std::string | name |
| timebase::TickPosition | position |
| timebase::TickDuration | duration |
| std::optional< std::uint32_t > | color |
| SectionRole | role = SectionRole::Unspecified |
Named positive-duration span on a sequence's musical timeline.
Regions may overlap or contain one another. Position and duration are in canonical ticks; color has the same encoding as SequenceMarker::color.
|
default |
Compares every authored member, role included.
A hand-written comparison that named the members individually is how the role went uncompared once already: every member here is exactly comparable, so there is no reason for a second, partial statement of the same question to exist.
| std::optional<std::uint32_t> pulp::timeline::SequenceRegion::color |
| timebase::TickDuration pulp::timeline::SequenceRegion::duration |
| ItemId pulp::timeline::SequenceRegion::id |
| std::string pulp::timeline::SequenceRegion::name |
| timebase::TickPosition pulp::timeline::SequenceRegion::position |
| SectionRole pulp::timeline::SequenceRegion::role = SectionRole::Unspecified |