SliceParams.h
Go to the documentation of this file.
/* Frobby: Software for monomial ideal computations.
Copyright (C) 2009 University of Aarhus
Contact Bjarke Hammersholt Roune for license information (www.broune.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
*/
#ifndef SLICE_PARAMS_GUARD
#define SLICE_PARAMS_GUARD
#include "SliceLikeParams.h"
#include <string>
class CliParams;
class SliceParams : public SliceLikeParams {
public:
SliceParams();
SliceParams(const CliParams& params);
const string& getSplit() const {return _split;}
void setSplit(const string& name) {_split = name;}
bool getUseIndependenceSplits() const {return _useIndependence;}
void useIndependenceSplits(bool value) {_useIndependence = value;}
bool getUseBoundElimination() const {return _useBoundElimination;}
void useBoundElimination(bool value) {_useBoundElimination = value;}
bool getUseBoundSimplification() const {return _useBoundSimplification;}
void useBoundSimplification(bool value) {_useBoundSimplification = value;}
private:
string _split;
bool _useIndependence;
bool _useBoundElimination;
bool _useBoundSimplification;
};
void addIdealParams(CliParams& params);
void extractCliValues(SliceParams& slice, const CliParams& cli);
void validateSplit(const SliceParams& params,
bool allowLabel,
bool allowDegree);
#endif
SliceLikeParams.h
validateSplit
void validateSplit(const SliceParams &params, bool allowLabel, bool allowDegree)
Definition SliceParams.cpp:61
addIdealParams
void addIdealParams(CliParams &params)
extractCliValues
void extractCliValues(SliceParams &slice, const CliParams &cli)
Definition SliceParams.cpp:50
CliParams
Definition CliParams.h:28
SliceLikeParams::SliceLikeParams
SliceLikeParams()
Definition SliceLikeParams.cpp:23
SliceParams
Definition SliceParams.h:25
SliceParams::useIndependenceSplits
void useIndependenceSplits(bool value)
Definition SliceParams.h:34
SliceParams::getSplit
const string & getSplit() const
Definition SliceParams.h:30
SliceParams::setSplit
void setSplit(const string &name)
Definition SliceParams.h:31
SliceParams::_useIndependence
bool _useIndependence
Definition SliceParams.h:49
SliceParams::getUseIndependenceSplits
bool getUseIndependenceSplits() const
Definition SliceParams.h:33
SliceParams::useBoundElimination
void useBoundElimination(bool value)
Definition SliceParams.h:39
SliceParams::_split
string _split
Definition SliceParams.h:48
SliceParams::SliceParams
SliceParams()
Definition SliceParams.cpp:25
SliceParams::useBoundSimplification
void useBoundSimplification(bool value)
Definition SliceParams.h:45
SliceParams::getUseBoundSimplification
bool getUseBoundSimplification() const
Returns whether to simplify slices by seeking to generate non-improving slices that are then eliminat...
Definition SliceParams.h:44
SliceParams::getUseBoundElimination
bool getUseBoundElimination() const
Returns whether to use branch-and-bound to speed up Slice optimization computations by eliminating no...
Definition SliceParams.h:38
SliceParams::_useBoundElimination
bool _useBoundElimination
Definition SliceParams.h:50
SliceParams::_useBoundSimplification
bool _useBoundSimplification
Definition SliceParams.h:51