Iterator to traverse and mutate a linear expression.
More...
#include <apxx_linexpr0.hh>
Inherits apron::linexpr0::const_iterator.
|
ap_linexpr0_t * | l |
| Internal use only. Pointer to the underlying APRON structure.
|
|
ap_dim_t | pos |
| Internal use only. Current index.
|
|
Iterator to traverse and mutate a linear expression.
As const_iterator, but for non-constant linexpr0.
Caution: do not modify the expression during traversal, except through the iterator.
Sample code:
bool valid() const
Whether we are at a valid position (true) or past the last iterator position (false).
Definition apxx_linexpr0.hh:425
Iterator to traverse and mutate a linear expression.
Definition apxx_linexpr0.hh:352
◆ iterator() [1/3]
apron::linexpr0::iterator::iterator |
( |
ap_linexpr0_t * | l | ) |
|
|
inlineprotected |
◆ iterator() [2/3]
linexpr0::iterator::iterator |
( |
linexpr0 & | e | ) |
|
|
inline |
Starts a new iterator to traverse the linear expression.
◆ iterator() [3/3]
linexpr0::iterator::iterator |
( |
const iterator & | i | ) |
|
|
inline |
◆ get_coeff()
coeff & linexpr0::iterator::get_coeff |
( |
| ) |
const |
|
inline |
Returns a (modifiable) reference to the coefficient at the current iterator position.
- Exceptions
-
std::out_of_range | if valid() returns false (we are past the last position). |
◆ operator=()
The documentation for this class was generated from the following files: