MNX Document Model
Loading...
Searching...
No Matches
mnx::util::EntityMap::MappedPosition Struct Reference

Canonical position value used by EntityMap for measure-relative comparisons and caches. More...

#include <EntityMap.h>

Public Member Functions

 MappedPosition (const std::string &measureId, const FractionValue &fraction, std::optional< unsigned > graceIndex=std::nullopt)
 Constructor function.
 
 MappedPosition (const MeasureRhythmicPosition &position)
 Constructor function from MeasureRhythmicPosition.
 

Public Attributes

std::string measureId
 the measure id of the measure
 
FractionValue fraction
 the rhythmic position within the measure
 
std::optional< unsigned > graceIndex
 the grace index of the event, if any
 

Detailed Description

Canonical position value used by EntityMap for measure-relative comparisons and caches.