mrdocs::Transform::apply

Transform the corpus.

Synopsis

Declared in <mrdocs/Transform.hpp>

virtual
Expected<void>
apply(
    Corpus& corpus,
    Config const& config,
    report::Reporter& reporter) const = 0;

Description

A transform reports through reporter, the reporter of the session that runs it.

Thread Safety

The transforms of one pipeline run one at a time, in the order they were added. A transform that several registries hold can run concurrently, for different corpora.

Return Value

The error, if any occurred. An error stops the run, before any generator is given the corpus.

Parameters

NameDescription
corpusThe corpus to read and change.
configThe configuration that drove the build. A transform that has options reads them with getTransformParams, declared in mrdocs/Extensions/TransformExtensionContext.hpp.
reporterThe reporter of the run.