26 _translator(translator),
31 (auto_ptr<BigTermConsumer> consumer,
const TermTranslator& translator):
32 _translator(translator),
33 _consumer(*consumer) {
34 ASSERT(consumer.get() != 0);
virtual void consume(const vector< mpz_class > &term)=0
virtual void consumeRing(const VarNames &names)=0
Tell the consumer which ring is being used.
virtual void doneConsuming()=0
Must be called once after each time beginConsuming has been called.
virtual void beginConsuming()=0
Tell the consumer to begin consuming an ideal.
virtual void doneConsumingList()
Must be called once after each time beginConsumingList has been called.
virtual void beginConsumingList()
Tell the consumer that the ideals that are consumed until the next call to doneConsumingList are to b...
TermTranslator handles translation between terms whose exponents are infinite precision integers and ...
size_t getVarCount() const
Term represents a product of variables which does not include a coefficient.
size_t getVarCount() const
TranslatingTermConsumer(BigTermConsumer &consumer, const TermTranslator &translator)
virtual void consumeRing(const VarNames &names)
Tell the consumer which ring is being used.
virtual void doneConsumingList()
Must be called once after each time beginConsumingList has been called.
auto_ptr< BigTermConsumer > _consumerOwner
BigTermConsumer & _consumer
virtual void beginConsuming()
Tell the consumer to begin consuming an ideal.
const TermTranslator & _translator
virtual void doneConsuming()
Must be called once after each time beginConsuming has been called.
virtual void consume(const Term &term)
Consume a term.
virtual void beginConsumingList()
Tell the consumer that the ideals that are consumed until the next call to doneConsumingList are to b...
Defines the variables of a polynomial ring and facilities IO involving them.