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 | |
| void | add(Technique t) Add a technique to the set. |
| void | remove(Technique t) Remove a technique from the set. |
| bool | contains(Technique t) const True if the technique is in the set. |
| bool | empty() const True if no techniques have been added. |
| std::size_t | size() const Number of distinct techniques currently in the set. |
| void | unionWith(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() =defaultfunction 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) constTrue if the technique is in the set.
function empty
bool empty() constTrue if no techniques have been added.
function size
std::size_t size() constNumber 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