denigma 4.0.0
Loading...
Searching...
No Matches
denigma::classify::GapCollector Class Reference

Collects typed conversion gaps for inspection or later serialization. More...

#include <gaps.h>

Public Member Functions

void retainDocument (musx::dom::DocumentPtr document)
 Keeps document alive for the collector's lifetime.
 
template<typename Payload >
void add (GapAnchor anchor, Payload payload, GapExtent extent=GapExtent::Complete, std::vector< GapPlacement > placements={})
 Adds one typed gap.
 
template<typename Payload >
void addSpan (GapAnchor anchor, GapAnchor end, Payload payload, GapExtent extent=GapExtent::Complete)
 Adds one typed gap for a feature that spans from anchor to end.
 
std::span< const Gapgaps () const noexcept
 Returns collected gaps in source traversal order.
 

Detailed Description

Collects typed conversion gaps for inspection or later serialization.

Classification values keep non-owning access to document-backed source objects, so the exporter that records gaps hands the collector its source document with retainDocument, and the collector keeps the document alive until the collector itself is destroyed.


The documentation for this class was generated from the following file: