Frobby
0.10.0
Toggle main menu visibility
Loading...
Searching...
No Matches
src
SplitStrategy.h
1
/* Frobby: Software for monomial ideal computations.
2
Copyright (C) 2007 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 SPLIT_STRATEGY_GUARD
18
#define SPLIT_STRATEGY_GUARD
19
20
class
Term
;
21
class
Slice
;
22
class
Ideal
;
23
class
TermGrader
;
24
30
class
SplitStrategy {
31
public
:
32
virtual
~SplitStrategy();
33
40
virtual
void
getPivot
(
Term
& pivot,
Slice
& slice)
const
= 0;
41
48
virtual
void
getPivot
(
Term
& pivot,
Slice
& slice,
const
TermGrader
& grader)
const
= 0;
49
54
virtual
size_t
getLabelSplitVariable
(
const
Slice
& slice)
const
= 0;
55
57
virtual
bool
isPivotSplit
()
const
= 0;
58
60
virtual
bool
isLabelSplit
()
const
= 0;
61
63
virtual
const
char
*
getName
()
const
= 0;
64
68
static
unique_ptr<SplitStrategy>
createStrategy
(
const
string
& prefix);
69
70
protected
:
71
SplitStrategy();
72
73
// To make these inaccessible. They are not implemented.
74
SplitStrategy(
const
SplitStrategy&);
75
SplitStrategy& operator=(
const
SplitStrategy&);
76
bool
operator==(
const
SplitStrategy&);
77
};
78
79
#endif
Ideal
Represents a monomial ideal with int exponents.
Definition
Ideal.h:27
Slice
Definition
Slice.h:77
SplitStrategy::createStrategy
static unique_ptr< SplitStrategy > createStrategy(const string &prefix)
Definition
SplitStrategy.cpp:497
SplitStrategy::getLabelSplitVariable
virtual size_t getLabelSplitVariable(const Slice &slice) const =0
SplitStrategy::getPivot
virtual void getPivot(Term &pivot, Slice &slice, const TermGrader &grader) const =0
SplitStrategy::isPivotSplit
virtual bool isPivotSplit() const =0
SplitStrategy::isLabelSplit
virtual bool isLabelSplit() const =0
SplitStrategy::getPivot
virtual void getPivot(Term &pivot, Slice &slice) const =0
SplitStrategy::getName
virtual const char * getName() const =0
TermGrader
Definition
TermGrader.h:27
Term
Definition
Term.h:49
Generated by
1.17.0