|
PPL
1.1
|
#include <ppl.hh>
Inherits const_iterator_interface.
Public Member Functions | |
| virtual const_iterator_interface * | clone () const |
| virtual void | operator++ () |
| virtual void | operator-- () |
| virtual reference | operator* () const |
| Returns the current element. | |
| virtual Variable | variable () const |
Returns the variable of the coefficient pointed to by *this. More... | |
| virtual bool | operator== (const const_iterator_interface &x) const |
Compares *this with x . More... | |
An interface for const iterators on the expression (homogeneous) coefficients that are nonzero.
These iterators are invalidated by operations that modify the expression.
|
virtual |
Returns a copy of *this. This returns a pointer to dynamic-allocated memory. The caller has the duty to free the memory when it's not needed anymore.
|
virtual |
Navigates to the next nonzero coefficient. Note that this method does *not* return a reference, to increase efficiency since it's virtual.
|
virtual |
Navigates to the previous nonzero coefficient. Note that this method does *not* return a reference, to increase efficiency since it's virtual.
|
virtual |
Returns the variable of the coefficient pointed to by *this.
*this.
|
virtual |
Compares *this with x .
| x | The iterator that will be compared with *this. |