Frobby 0.10.0
Loading...
Searching...
No Matches
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
20class Term;
21class Slice;
22class Ideal;
23class TermGrader;
24
30class 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
Represents a monomial ideal with int exponents.
Definition Ideal.h:27
Definition Slice.h:77
static unique_ptr< SplitStrategy > createStrategy(const string &prefix)
Definition SplitStrategy.cpp:497
virtual size_t getLabelSplitVariable(const Slice &slice) const =0
virtual void getPivot(Term &pivot, Slice &slice, const TermGrader &grader) const =0
virtual bool isPivotSplit() const =0
virtual bool isLabelSplit() const =0
virtual void getPivot(Term &pivot, Slice &slice) const =0
virtual const char * getName() const =0
Definition TermGrader.h:27
Definition Term.h:49