Skip to content

GuitarPrometheus::Techniques::TechniqueSet

GuitarPrometheus::Techniques::TechniqueSet

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

#include <TechniqueSet.h>

Public Functions

Name
TechniqueSet() =default
voidadd(Technique t)
Add a technique to the set.
voidremove(Technique t)
Remove a technique from the set.
boolcontains(Technique t) const
True if the technique is in the set.
boolempty() const
True if no techniques have been added.
std::size_tsize() const
Number of distinct techniques currently in the set.
voidunionWith(const TechniqueSet & other)
Add every technique present in other to this set.

Detailed Description

class GuitarPrometheus::Techniques::TechniqueSet;

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

Backed by a std::bitset<kNumTechniques> so membership is a single bit test. Suitable for the small fixed universe of techniques the parser knows about.

Public Functions Documentation

function TechniqueSet

TechniqueSet() =default

function add

void add(
Technique t
)

Add a technique to the set.

Idempotent.

function remove

void remove(
Technique t
)

Remove a technique from the set.

No-op if absent.

function contains

bool contains(
Technique t
) const

True if the technique is in the set.

function empty

bool empty() const

True if no techniques have been added.

function size

std::size_t size() const

Number of distinct techniques currently in the set.

function unionWith

void unionWith(
const TechniqueSet & other
)

Add every technique present in other to this set.

Idempotent on overlap.


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