PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
groebner
include
polybori
groebner
LessWeightedLengthInStrat.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_groebner_LessWeightedLengthInStrat_h_
17
#define polybori_groebner_LessWeightedLengthInStrat_h_
18
19
// include basic definitions
20
#include "
ReductionStrategy.h
"
21
#include "
groebner_defs.h
"
22
23
BEGIN_NAMESPACE_PBORIGB
24
29
class
LessWeightedLengthInStrat
{
30
public
:
31
const
ReductionStrategy
*
strat
;
32
LessWeightedLengthInStrat
(
const
ReductionStrategy
& strat){
33
this->strat=&strat;
34
}
35
bool
operator() (
const
Monomial
& a ,
const
Monomial
& b){
36
return
(*strat)[a].weightedLength<(*strat)[b].weightedLength;
37
38
}
39
bool
operator() (
const
Exponent
& a ,
const
Exponent
& b){
40
return
(*strat)[a].weightedLength<(*strat)[b].weightedLength;
41
42
}
43
};
44
45
END_NAMESPACE_PBORIGB
46
47
#endif
/* polybori_LessWeightedLengthInStrat_h_ */
Generated by
1.8.3.1