Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
algorithm_builder.hpp
Go to the documentation of this file.
1//This file is part of Bertini 2.
2//
3//bertini2/blackbox/algorithm_builder.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//bertini2/blackbox/algorithm_builder.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 bertini2/blackbox/algorithm_builder.hpp. If not, see <http://www.gnu.org/licenses/>.
15//
16// Copyright(C) 2017-2021 by 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//
22// individual authors of this file include
23//
24// silviana amethyst, university of wisconsin-eau claire
25
31
32
33
34#pragma once
35
37
38namespace bertini {
39namespace blackbox {
40
41
47class AlgoBuilder
48{
49
50public:
51 AlgoBuilder() = default;
52
56 int ClassicBuild(boost::filesystem::path const& input_file);
57
61 AnyAlgorithm* GetAlg()
62 {
63 return alg_.get();
64 }
65
66private:
67 std::unique_ptr<AnyAlgorithm> alg_;
68};
69
70
71
72} // blackbox
73} //namespace bertini
74
int ClassicBuild(boost::filesystem::path const &input_file)
Method for constructing an algorithm from a bertini classic input file.
Definition algorithm_builder.cpp:33
AnyAlgorithm * GetAlg()
Returns a non-owning pointer to the built algorithm.
Definition algorithm_builder.hpp:61
Provides the file_utilities screens for bertini2.