Frobby
0.10.0
Toggle main menu visibility
Loading...
Searching...
No Matches
src
PivotStrategy.h
1
/* Frobby: Software for monomial ideal computations.
2
Copyright (C) 2011 Bjarke Hammersholt Roune (www.broune.com)
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program. If not, see http://www.gnu.org/licenses/.
16
*/
17
#ifndef PIVOT_EULER_STRATEGY_GUARD
18
#define PIVOT_EULER_STRATEGY_GUARD
19
20
#include <vector>
21
#include <ostream>
22
#include <string>
23
24
class
EulerState
;
25
class
PivotEulerAlg
;
26
28
class
PivotStrategy {
29
public
:
30
virtual
~PivotStrategy() {}
31
35
virtual
EulerState
*
doPivot
(
EulerState
& state,
const
size_t
* divCounts) = 0;
36
38
virtual
void
getName
(ostream& out)
const
= 0;
39
41
virtual
void
computationCompleted
(
const
PivotEulerAlg
& alg) = 0;
42
44
virtual
bool
shouldTranspose
(
const
EulerState
& state)
const
= 0;
45
46
protected
:
47
PivotStrategy() {}
48
49
private
:
50
PivotStrategy
(
const
PivotStrategy
&);
// not available
51
void
operator=(
const
PivotStrategy
&);
// not available
52
};
53
54
unique_ptr<PivotStrategy> newDefaultPivotStrategy();
55
56
unique_ptr<PivotStrategy> newStdPivotStrategy(
const
string
& name);
57
unique_ptr<PivotStrategy> newGenPivotStrategy(
const
string
& name);
58
unique_ptr<PivotStrategy> newHybridPivotStrategy
59
(unique_ptr<PivotStrategy> stdStrat, unique_ptr<PivotStrategy> genStrat);
60
unique_ptr<PivotStrategy> newDebugPivotStrategy(unique_ptr<PivotStrategy> strat,
61
FILE* out);
62
unique_ptr<PivotStrategy> newStatisticsPivotStrategy
63
(unique_ptr<PivotStrategy> strat, FILE* out);
64
65
#endif
EulerState
Definition
EulerState.h:25
PivotEulerAlg
Definition
PivotEulerAlg.h:30
PivotStrategy
Definition
PivotStrategy.h:28
PivotStrategy::doPivot
virtual EulerState * doPivot(EulerState &state, const size_t *divCounts)=0
PivotStrategy::shouldTranspose
virtual bool shouldTranspose(const EulerState &state) const =0
PivotStrategy::computationCompleted
virtual void computationCompleted(const PivotEulerAlg &alg)=0
PivotStrategy::getName
virtual void getName(ostream &out) const =0
Generated by
1.17.0