63 for (
size_t index = 0; index < poly.
getTermCount(); ++index)
const vector< mpz_class > & getTerm(size_t index) const
size_t getTermCount() const
const mpz_class & getCoef(size_t index) const
const VarNames & getNames() const
virtual void doWriteFooter(bool wasZero)=0
virtual void doneConsuming()
virtual void doWriteHeader()=0
virtual void beginConsuming()
virtual void consumeRing(const VarNames &names)
virtual void doWriteTerm(const mpz_class &coef, const Term &term, const TermTranslator &translator, bool firstGenerator)=0
virtual void consume(const mpz_class &coef, const Term &term, const TermTranslator &translator)
TermTranslator handles translation between terms whose exponents are infinite precision integers and ...
Term represents a product of variables which does not include a coefficient.
size_t getVarCount() const
Defines the variables of a polynomial ring and facilities IO involving them.
size_t getVarCount() const
Returns the current number of variables.