PolyBoRi
ExpGreater.h
Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //*****************************************************************************
00014 //*****************************************************************************
00015 
00016 #ifndef polybori_groebner_ExpGreater_h_
00017 #define polybori_groebner_ExpGreater_h_
00018 
00019 // include basic definitions
00020 #include "groebner_defs.h"
00021 
00022 BEGIN_NAMESPACE_PBORIGB
00023 
00028 class ExpGreater:
00029   public CFactoryBase {
00030 public:
00031   ExpGreater(const BoolePolyRing& ring): CFactoryBase(ring) {}
00032 
00033   bool operator()(const BooleExponent& lhs,
00034                   const BooleExponent& rhs) const {
00035     return parent().ordering().compare(lhs,rhs)==CTypes::greater_than;
00036   }
00037 };
00038 
00039 END_NAMESPACE_PBORIGB
00040 
00041 #endif /* polybori_ExpGreater_h_ */