Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::blackbox::AnyAlgorithm Struct Referenceabstract

Type-erased base for all nag algorithms, exposing a single Run() entry point. More...

#include <algorithm_base.hpp>

Inheritance diagram for bertini::blackbox::AnyAlgorithm:
[legend]
Collaboration diagram for bertini::blackbox::AnyAlgorithm:
[legend]

Public Member Functions

virtual void Run ()=0
 Run the algorithm.
virtual ~AnyAlgorithm ()=default

Detailed Description

Type-erased base for all nag algorithms, exposing a single Run() entry point.

Observable, so that being watchable is a property of being an algorithm rather than something each one remembers to add: anything holding an AnyAlgorithm can attach an observer to it. Virtually inherited, because the concrete algorithms reach this base through their own type-erased bases (AnyZeroDim, AnyNID) and must not end up with two observer lists.

Constructor & Destructor Documentation

◆ ~AnyAlgorithm()

Member Function Documentation

◆ Run()

virtual void bertini::algorithm::AnyAlgorithm::Run ( )
pure virtual

Run the algorithm.