PPL
1.2
|
#include <ppl.hh>
Public Member Functions | |
const_iterator () | |
Constructs an invalid const_iterator. More... | |
const_iterator (const const_iterator &i) | |
The copy constructor. More... | |
void | m_swap (const_iterator &i) |
Swaps i with *this . More... | |
const_iterator & | operator= (const const_iterator &i) |
Assigns i to *this . More... | |
const_iterator & | operator++ () |
Navigates to the next nonzero coefficient. More... | |
const_iterator & | operator-- () |
Navigates to the previous nonzero coefficient. More... | |
reference | operator* () const |
Returns the current element. | |
Variable | variable () const |
Returns the variable of the coefficient pointed to by *this . More... | |
bool | operator== (const const_iterator &i) const |
Compares *this with i . More... | |
bool | operator!= (const const_iterator &i) const |
Compares *this with i . More... | |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (Linear_Expression::const_iterator &x, Linear_Expression::const_iterator &y) |
Swaps x with y . More... | |
void | swap (Linear_Expression::const_iterator &x, Linear_Expression::const_iterator &y) |
A const iterator on the expression (homogeneous) coefficient that are nonzero.
These iterators are invalidated by operations that modify the expression.
|
inlineexplicit |
Constructs an invalid const_iterator.
This constructor takes time.
|
inline |
The copy constructor.
i | The iterator that will be copied. |
This constructor takes time.
|
inline |
Swaps i
with *this
.
i | The iterator that will be swapped with *this . |
This method takes time.
|
inline |
Assigns i
to *this .
i | The iterator that will be assigned into *this. |
This method takes time.
|
inline |
Navigates to the next nonzero coefficient.
This method takes time for dense expressions, and
time for sparse expressions.
|
inline |
Navigates to the previous nonzero coefficient.
This method takes time for dense expressions, and
time for sparse expressions.
|
inline |
Returns the variable of the coefficient pointed to by *this
.
*this
.
|
inline |
Compares *this
with i
.
i | The iterator that will be compared with *this. |
|
inline |
Compares *this
with i
.
i | The iterator that will be compared with *this. |
|
related |
Swaps x
with y
.
|
related |