|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Tries a primary contour extractor and falls back to another extractor on failure. More...
#include <WithFallback.h>


Public Member Functions | |
| WithFallback (std::shared_ptr< IContourExtractor > primary, std::shared_ptr< IContourExtractor > fallback) | |
| Constructs a fallback contour extractor wrapper. | |
| Contour | extract (const ScalarField2D &field, const ContourRequest &cr) override |
| Extracts a contour using the primary extractor, then fallback if needed. | |
Public Member Functions inherited from IContourExtractor | |
| virtual | ~IContourExtractor ()=default |
Tries a primary contour extractor and falls back to another extractor on failure.
The wrapper is intended to make contour production more robust when a fast or preferred extraction method can occasionally fail. The fallback is used when the primary extractor throws an exception or returns a contour marked as unsuccessful.
Definition at line 52 of file WithFallback.h.
|
inline |
Constructs a fallback contour extractor wrapper.
| primary | Extractor attempted first. |
| fallback | Extractor used if the primary fails or returns an unsuccessful contour. |
Definition at line 61 of file WithFallback.h.
|
inlineoverridevirtual |
Extracts a contour using the primary extractor, then fallback if needed.
| std::exception | propagated from the fallback extractor if fallback extraction also fails. |
Implements IContourExtractor.
Definition at line 75 of file WithFallback.h.