IsEcart0Predicate.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_IsEcart0Predicate_h_
#define polybori_groebner_IsEcart0Predicate_h_
// include basic definitions
#include "groebner_defs.h"
#include "ReductionStrategy.h"
BEGIN_NAMESPACE_PBORIGB
class IsEcart0Predicate{
public:
IsEcart0Predicate(const ReductionStrategy& strat){
this->strat=&strat;
}
bool operator() (const Exponent& e){
return (*strat)[e].ecart()==0;
}
private:
const ReductionStrategy* strat;
};
END_NAMESPACE_PBORIGB
#endif /* polybori_IsEcart0Predicate_h_ */