PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
groebner
include
polybori
groebner
PairLSCompare.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_groebner_PairLSCompare_h_
17
#define polybori_groebner_PairLSCompare_h_
18
19
// include basic definitions
20
#include "
groebner_defs.h
"
21
22
BEGIN_NAMESPACE_PBORIGB
23
28
class
PairLSCompare
{
29
public
:
31
bool
operator() (
const
PairLS
& l,
const
PairLS
& r){
32
if
(l.
sugar
!=r.
sugar
)
return
l.
sugar
>r.
sugar
;
//greater sugar, less importance
33
if
(l.
wlen
!=r.
wlen
)
return
l.
wlen
>r.
wlen
;
34
if
(l.
lm
!=r.
lm
)
return
l.
lm
>r.
lm
;
35
37
return
false
;
38
}
39
};
40
41
END_NAMESPACE_PBORIGB
42
43
#endif
/* polybori_PairLSCompare_h_ */
Generated by
1.8.3.1