Skip to content

GuitarPrometheus::Techniques::ArticulationSet

GuitarPrometheus::Techniques::ArticulationSet

Compact set of per-note articulations attached to an Engraving. More…

#include <ArticulationSet.h>

Public Functions

Name
ArticulationSet() =default
voidadd(Articulation a)
Add an articulation to the set.
boolcontains(Articulation a) const
True if the articulation is in the set.
boolempty() const
True if no articulations have been added.
std::size_tsize() const
Number of distinct articulations currently in the set.

Detailed Description

class GuitarPrometheus::Techniques::ArticulationSet;

Compact set of per-note articulations attached to an Engraving.

Backed by a std::bitset<kNumArticulations> so membership is a single bit test. Suitable for the small fixed universe of articulations the parser recognizes.

Public Functions Documentation

function ArticulationSet

ArticulationSet() =default

function add

void add(
Articulation a
)

Add an articulation to the set.

Idempotent.

function contains

bool contains(
Articulation a
) const

True if the articulation is in the set.

function empty

bool empty() const

True if no articulations have been added.

function size

std::size_t size() const

Number of distinct articulations currently in the set.


Updated on 2026-05-29 at 07:39:52 +0000