PPL
1.2
|
#include <Linear_Expression_defs.hh>
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef const Coefficient | value_type |
typedef std::ptrdiff_t | difference_type |
typedef value_type * | pointer |
typedef Coefficient_traits::const_reference | reference |
Public Member Functions | |
const_iterator () | |
Constructs an invalid const_iterator. More... | |
const_iterator (const const_iterator &i) | |
The copy constructor. More... | |
~const_iterator () | |
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. More... | |
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... | |
Private Member Functions | |
const_iterator (Linear_Expression_Interface::const_iterator_interface *i) | |
Private Attributes | |
Linear_Expression_Interface::const_iterator_interface * | itr |
Friends | |
class | Linear_Expression |
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.
Definition at line 395 of file Linear_Expression_defs.hh.
typedef std::ptrdiff_t Parma_Polyhedra_Library::Linear_Expression::const_iterator::difference_type |
Definition at line 400 of file Linear_Expression_defs.hh.
typedef std::bidirectional_iterator_tag Parma_Polyhedra_Library::Linear_Expression::const_iterator::iterator_category |
Definition at line 398 of file Linear_Expression_defs.hh.
Definition at line 401 of file Linear_Expression_defs.hh.
typedef Coefficient_traits::const_reference Parma_Polyhedra_Library::Linear_Expression::const_iterator::reference |
Definition at line 402 of file Linear_Expression_defs.hh.
Definition at line 399 of file Linear_Expression_defs.hh.
|
inlineexplicit |
Constructs an invalid const_iterator.
This constructor takes time.
Definition at line 623 of file Linear_Expression_inlines.hh.
|
inline |
The copy constructor.
i | The iterator that will be copied. |
This constructor takes time.
Definition at line 629 of file Linear_Expression_inlines.hh.
|
inline |
Definition at line 635 of file Linear_Expression_inlines.hh.
|
inlineprivate |
Constructor from a const_iterator_interface*. The new object takes ownership of the dynamic object.
Definition at line 701 of file Linear_Expression_inlines.hh.
|
inline |
Swaps i
with *this
.
i | The iterator that will be swapped with *this . |
This method takes time.
Definition at line 641 of file Linear_Expression_inlines.hh.
References itr, Parma_Polyhedra_Library::swap(), and Parma_Polyhedra_Library::Linear_Expression::swap().
Referenced by swap().
|
inline |
Compares *this
with i
.
i | The iterator that will be compared with *this. |
Definition at line 695 of file Linear_Expression_inlines.hh.
|
inline |
Returns the current element.
Definition at line 673 of file Linear_Expression_inlines.hh.
|
inline |
Navigates to the next nonzero coefficient.
This method takes time for dense expressions, and
time for sparse expressions.
Definition at line 657 of file Linear_Expression_inlines.hh.
|
inline |
Navigates to the previous nonzero coefficient.
This method takes time for dense expressions, and
time for sparse expressions.
Definition at line 665 of file Linear_Expression_inlines.hh.
|
inline |
Assigns i
to *this .
i | The iterator that will be assigned into *this. |
This method takes time.
Definition at line 648 of file Linear_Expression_inlines.hh.
References Parma_Polyhedra_Library::swap(), and Parma_Polyhedra_Library::Linear_Expression::swap().
|
inline |
Compares *this
with i
.
i | The iterator that will be compared with *this. |
Definition at line 687 of file Linear_Expression_inlines.hh.
References itr.
|
inline |
Returns the variable of the coefficient pointed to by *this
.
*this
. Definition at line 680 of file Linear_Expression_inlines.hh.
Referenced by Parma_Polyhedra_Library::Polyhedron::modify_according_to_evolution().
|
friend |
Definition at line 483 of file Linear_Expression_defs.hh.
|
related |
Definition at line 837 of file Linear_Expression_inlines.hh.
References m_swap().
|
related |
Swaps x
with y
.
|
private |
Definition at line 481 of file Linear_Expression_defs.hh.
Referenced by m_swap(), and operator==().