|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Iterator to iterate over an array of type IloNumArray. More...
#include <lp_solver_cplex.hxx>
Inheritance diagram for opengm::IloNumArrayIterator:
Collaboration diagram for opengm::IloNumArrayIterator:Public Member Functions | |
| IloNumArrayIterator () | |
| Default constructor to create an empty IloNumArrayIterator. More... | |
| IloNumArrayIterator (const IloNumArray &array, const IloInt position=0) | |
| bool | operator!= (const IloNumArrayIterator &iter) const |
| Comparison operator to test if two iterators point to different elements. More... | |
| bool | operator== (const IloNumArrayIterator &iter) const |
| Comparison operator to test if two iterators point to the same element. More... | |
| const IloNum & | operator* () const |
| The dereference operator provides constant access to the element at which the iterator is pointing. More... | |
| const IloNum & | operator[] (const IloInt n) const |
| The subscript operator provides constant access to the element in the sequence which is n elements behind the element at which the iterator is pointing. More... | |
| IloNumArrayIterator & | operator++ () |
| The increment operator increases the position at which the iterator is pointing by one. Hence the iterator will point to the next element in the sequence. More... | |
| difference_type | operator- (const IloNumArrayIterator &iter) const |
| The difference operator computes the difference of two IloNumArrayIterators. More... | |
Protected Attributes | |
| const IloNumArray * | array_ |
| Constant pointer to the IloNumArray over which the iterator will iterate. More... | |
| IloInt | position_ |
| Index of the element in the sequence at which the iterator is pointing at the moment. More... | |
Iterator to iterate over an array of type IloNumArray.
This class implements an iterator to iterate over the elements of an array of type IloNumArray. It provides only constant access to the elements.
Definition at line 16 of file lp_solver_cplex.hxx.
|
inline |
Default constructor to create an empty IloNumArrayIterator.
Definition at line 598 of file lp_solver_cplex.hxx.
|
inline |
Definition at line 603 of file lp_solver_cplex.hxx.
|
inline |
Comparison operator to test if two iterators point to different elements.
| [in] | iter | The iterator which will be tested for inequality. |
Definition at line 608 of file lp_solver_cplex.hxx.
|
inline |
The dereference operator provides constant access to the element at which the iterator is pointing.
Definition at line 616 of file lp_solver_cplex.hxx.
|
inline |
The increment operator increases the position at which the iterator is pointing by one. Hence the iterator will point to the next element in the sequence.
Definition at line 624 of file lp_solver_cplex.hxx.
|
inline |
The difference operator computes the difference of two IloNumArrayIterators.
Definition at line 629 of file lp_solver_cplex.hxx.
|
inline |
Comparison operator to test if two iterators point to the same element.
| [in] | iter | The iterator which will be tested for equality. |
Definition at line 612 of file lp_solver_cplex.hxx.
|
inline |
The subscript operator provides constant access to the element in the sequence which is n elements behind the element at which the iterator is pointing.
| [in] | n | The offset for the element which will be accessed. |
Definition at line 620 of file lp_solver_cplex.hxx.
|
protected |
Constant pointer to the IloNumArray over which the iterator will iterate.
Definition at line 37 of file lp_solver_cplex.hxx.
|
protected |
Index of the element in the sequence at which the iterator is pointing at the moment.
Definition at line 38 of file lp_solver_cplex.hxx.
1.8.9.1