Transform the corpus.
Declared in <mrdocs/Transform.hpp>
virtual
Expected<void>
apply(
Corpus& corpus,
Config const& config,
report::Reporter& reporter) const = 0;
A transform reports through reporter, the reporter of the session that runs it.
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.
The error, if any occurred. An error stops the run, before any generator is given the corpus.
| Name | Description |
|---|---|
| corpus | The corpus to read and change. |
| config | The configuration that drove the build. A transform that has options reads them with getTransformParams, declared in mrdocs/Extensions/TransformExtensionContext.hpp. |
| reporter | The reporter of the run. |