|
Frobby 0.10.0
|
#include <LibTest.h>


Public Member Functions | |
| LibPolynomialConsumer (const VarNames &names) | |
| virtual void | polynomialBegin (size_t varCount) |
| virtual void | consume (const mpz_t coef, mpz_ptr *exponentVector) |
| const BigPolynomial & | getPolynomial () const |
| Public Member Functions inherited from Frobby::PolynomialConsumer | |
| virtual | ~PolynomialConsumer () |
| virtual void | polynomialEnd () |
Records library interface output into a BigPolynomial.
|
virtual |
For output of a term of the polynomial. coefficient contains the coefficient of the term, and exponentVector is an array containing the exponents of the term.
The parameters coefficient, exponentVector and its entries must not be altered or deallocated, and no reference to them can be retained after the consume method has returned. If the output must be stored, then a copy must be made.
Implements Frobby::PolynomialConsumer.
| const BigPolynomial & LibPolynomialConsumer::getPolynomial | ( | ) | const |
Returns the recorded polynomial in a canonical form.
|
virtual |
Called before output of a polynomial. varCount is the number of variables in the ring within which the output polynomial lies. The provided implementation does nothing.
Reimplemented from Frobby::PolynomialConsumer.