PolyBoRi
LargerDegreeComparer.h
Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //*****************************************************************************
00014 //*****************************************************************************
00015 
00016 #ifndef polybori_groebner_LargerDegreeComparer_h_
00017 #define polybori_groebner_LargerDegreeComparer_h_
00018 
00019 // include basic definitions
00020 #include "groebner_defs.h"
00021 
00022 BEGIN_NAMESPACE_PBORIGB
00023 
00028 class LargerDegreeComparer{
00029 public:
00030   bool operator() (const Monomial& a , const Monomial& b){
00031       return a.deg() > b.deg(); 
00032     
00033   }
00034   bool operator() (const Exponent& a , const Exponent& b){
00035       return a.deg()>b.deg();
00036     
00037   }
00038 };
00039 
00040 END_NAMESPACE_PBORIGB
00041 
00042 #endif /* polybori_LargerDegreeComparer_h_ */