17 #ifndef LIB_TEST_GUARD
18 #define LIB_TEST_GUARD
36 const mpz_t*
castLibArray(
const vector<mpz_class>& vect);
44 virtual void consume(mpz_ptr* exponentVector);
63 virtual void consume(mpz_ptr* exponentVector);
66 const vector<BigIdeal>&
getIdeals()
const;
79 virtual void consume(
const mpz_t coef, mpz_ptr* exponentVector);
const mpz_t * castLibArray(const vector< mpz_class > &vect)
Returns a pointer to an array of mpt_t that represents the entries in the mpz_class.
Frobby::Ideal toLibIdeal(const BigIdeal &ideal)
Returns a library interface ideal that corresponds to the parameter ideal.
This class provides a way to get monomial ideals as output from Frobby one generator at a time.
This class provides a way to get polynomials as output from Frobby one term at a time.
Records library interface output into a BigIdeal.
const BigIdeal & getIdeal() const
Returns the recorded ideal in a canonical form.
virtual void consume(mpz_ptr *exponentVector)
For output of a generator of the ideal.
virtual void idealBegin(size_t varCount)
Called before output of a monomial ideal.
LibIdealConsumer(const VarNames &names)
bool hasAnyOutput() const
Returns whether any ideal has been recorded.
Records library interface output into a vector of BigIdeals.
virtual void consume(mpz_ptr *exponentVector)
For output of a generator of the ideal.
LibIdealsConsumer(const VarNames &names)
virtual void idealBegin(size_t varCount)
Called before output of a monomial ideal.
const vector< BigIdeal > & getIdeals() const
Returns the recorded ideals in a canonical form.
vector< BigIdeal > _ideals
Records library interface output into a BigPolynomial.
const BigPolynomial & getPolynomial() const
Returns the recorded polynomial in a canonical form.
virtual void polynomialBegin(size_t varCount)
Called before output of a polynomial.
virtual void consume(const mpz_t coef, mpz_ptr *exponentVector)
For output of a term of the polynomial.
BigPolynomial _polynomial
LibPolynomialConsumer(const VarNames &names)
Defines the variables of a polynomial ring and facilities IO involving them.