Bertini 2
d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
algorithm_base.hpp
Go to the documentation of this file.
1
//This file is part of Bertini 2.
2
//
3
//nag_algorithms/common/algorithm_base.hpp is free software: you can redistribute it and/or modify
4
//it under the terms of the GNU General Public License as published by
5
//the Free Software Foundation, either version 3 of the License, or
6
//(at your option) any later version.
7
//
8
//nag_algorithms/common/algorithm_base.hpp is distributed in the hope that it will be useful,
9
//but WITHOUT ANY WARRANTY; without even the implied warranty of
10
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
//GNU General Public License for more details.
12
//
13
//You should have received a copy of the GNU General Public License
14
//along with nag_algorithms/common/algorithm_base.hpp. If not, see <http://www.gnu.org/licenses/>.
15
//
16
// Copyright(C) Bertini2 Development Team
17
//
18
// See <http://www.gnu.org/licenses/> for a copy of the license,
19
// as well as COPYING. Bertini2 is provided with permitted
20
// additional terms in the b2/licenses/ directory.
21
27
28
#pragma once
29
30
#include "
bertini2/detail/observable.hpp
"
31
32
namespace
bertini
{
33
34
namespace
algorithm
{
35
45
struct
AnyAlgorithm
:
public
virtual
Observable
46
{
47
49
virtual
50
void
Run
() = 0;
51
52
virtual
~AnyAlgorithm
() =
default
;
53
};
54
}
55
}
bertini::Observable::Observable
Observable()=default
bertini::algorithm
Definition
algorithm_base.hpp:34
bertini
Definition
algorithm_builder.hpp:36
observable.hpp
Contains the observable base types.
bertini::algorithm::AnyAlgorithm
Type-erased base for all nag algorithms, exposing a single Run() entry point.
Definition
algorithm_base.hpp:46
bertini::algorithm::AnyAlgorithm::Run
virtual void Run()=0
Run the algorithm.
bertini::algorithm::AnyAlgorithm::~AnyAlgorithm
virtual ~AnyAlgorithm()=default
core
include
bertini2
nag_algorithms
common
algorithm_base.hpp
Generated by
1.15.0