|
|
|
|
| Category:iterators |
Component type:concept |
|
 |
| Description
|
|
The iterator concept for iterators of Vector's. An IndexedIterator
provides access to the indices, as well as the elements, of a
Vector.
For instance, i.row() gives the row index cooresponding to
the element *i.
|
 |
| Refinement of
|
|
BidirectionalIterator
|
 |
| Associated types
|
| Concept |
Type name |
Description |
|
 |
| Notations
|
| X | A type that is a model of IndexedIterator |
| i | Object of type X |
| V | A type that is a model of Vector |
| a | An object of type V |
| n | An object of integral type |
| r | A row in some Matrix. |
|
 |
| Definitions
|
|
|
 |
| Expression semantics
|
| Description |
Expression |
Semantics |
|
Row Index access
|
i.row()
|
|
|
Column Index access
|
i.column()
|
|
|
Index access
|
i.index()
|
|
|
 |
| Function specification
|
| Name |
Function |
Complexity |
|
Row Index access
|
size_type row()
|
constant time
|
|
Column Index access
|
size_type column()
|
constant time
|
|
Index access
|
size_type index()
|
constant time
|
|
 |
| Invariants
|
|
|
 |
| Models
|
|
|
 |
| Notes
|
|
|
 |
| See also
|
|
|