BoundedDivisorsOf.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_BoundedDivisorsOf_h_
#define polybori_groebner_BoundedDivisorsOf_h_
#include "fixed_path_divisors.h"
// include basic definitions
#include "groebner_defs.h"
#include <functional>
BEGIN_NAMESPACE_PBORIGB
class BoundedDivisorsOf:
public std::unary_function<Monomial, MonomialSet> {
public:
BoundedDivisorsOf(const Monomial& term, const MonomialSet& terms):
m_factor(term), m_terms(terms) {}
MonomialSet operator()(const Monomial& t_divided) const {
Monomial t = t_divided * m_factor;
return fixed_path_divisors(m_terms, t, t_divided);
}
private:
Monomial m_factor;
MonomialSet m_terms;
};
END_NAMESPACE_PBORIGB
#endif /* polybori_groebner_BoundedDivisorsOf_h_ */
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
polybori::groebner::fixed_path_divisors
MonomialSet fixed_path_divisors(MonomialSet a, Monomial m, Monomial n)
Definition: fixed_path_divisors.h:152
polybori::groebner::BoundedDivisorsOf::BoundedDivisorsOf
BoundedDivisorsOf(const Monomial &term, const MonomialSet &terms)
Initialize mapping with given parameters.
Definition: BoundedDivisorsOf.h:47
groebner_defs.h
polybori::groebner::BoundedDivisorsOf
This class defines defines a function for computing a bounded variant of MononmialSet's divisorsOf...
Definition: BoundedDivisorsOf.h:42
fixed_path_divisors.h
polybori::groebner::BoundedDivisorsOf::operator()
MonomialSet operator()(const Monomial &t_divided) const
The actual call.
Definition: BoundedDivisorsOf.h:51
polybori::BooleSet
Definition: BooleSet.h:57
polybori::BooleMonomial
This class is just a wrapper for using variables from cudd's decicion diagram.
Definition: BooleMonomial.h:50