Gröbner basis project
Codebase for research into Gröbner basis computation
|
A Mutable_Polynomial_Iterator allows one to modify the terms of a polynomial. More...
#include <polynomial.hpp>
Public Member Functions | |
Data modification | |
virtual void | set_currCoeff (const Prime_Field_Element &)=0 |
change coefficient in current position | |
virtual void | set_currMonomial (const Monomial &)=0 |
change monomial in current position | |
![]() | |
virtual | ~Polynomial_Iterator ()=0 |
needed to avoid undefined behavior when disposing | |
virtual void | restart_iteration ()=0 |
This should move the iterator to the leading term. | |
virtual void | moveRight ()=0 |
Moves right in the polynomial, to the next smaller monomial. | |
const Polynomial_Iterator & | operator++ () |
Moves right in the polynomial, to the next smaller monomial. | |
virtual bool | canMoveRight () const =0 |
Can this iterator move right, or would it fall off? | |
virtual void | moveLeft ()=0 |
Moves left in the polynomial, to the next larger monomial. | |
virtual bool | canMoveLeft () const =0 |
Can this iterator move left, or would it fall off? | |
virtual bool | fellOff () const =0 |
Reports true iff the iterator no longer points to a valid monomial. More... | |
virtual const Abstract_Polynomial * | my_poly () const |
Reports the polynomial on which this is iterating. | |
virtual const Monomial & | currMonomial () const =0 |
Reports the monomial at the current position. | |
virtual const Prime_Field_Element & | currCoeff () const =0 |
Reports the coefficient at the current position. | |
const Polynomial_Term | operator* () const |
C++11 iteration. | |
virtual bool | operator!= (const Polynomial_Iterator &other) const |
Additional Inherited Members | |
![]() | |
const Abstract_Polynomial * | p |
the polynomial this points to | |
A Mutable_Polynomial_Iterator allows one to modify the terms of a polynomial.
Definition at line 263 of file polynomial.hpp.