SLIP
1.4
|
This is some iterator to iterate a 2d container into a slip::Box2d area defined by the indices of the 2d container. More...
#include <Array2d.hpp>
Public Types | |
typedef std::random_access_iterator2d_tag | iterator_category |
typedef Container2D::value_type | value_type |
typedef DPoint2d< int > | difference_type |
typedef Container2D::pointer | pointer |
typedef Container2D::reference | reference |
typedef iterator2d_box | self |
typedef Container2D::size_type | size_type |
Public Member Functions | |
reference | operator* () |
Dereference assignment operator. Returns the element that the current iterator2d_box i point to. More... | |
pointer | operator-> () |
Constructors & Destructors | |
iterator2d_box () | |
Constructs a iterator2d_box. More... | |
iterator2d_box (Container2D *c, const Box2d< int > &b) | |
Constructs a iterator2d_box. More... | |
iterator2d_box (const self &o) | |
Constructs a copy of the iterator2d_box o. More... | |
Assignment operators and methods | |
self & | operator= (const self &o) |
Assign a iterator2d_box. More... | |
Forward operators addons | |
self & | operator++ () |
Preincrement a iterator2d_box. Iterate to the next location inside the Box2d. More... | |
self | operator++ (int) |
Postincrement a iterator2d_box. Iterate to the next location inside the Box2d. More... | |
Bidirectional operators addons | |
self & | operator-- () |
Predecrement a iterator2d_box. Iterate to the previous location inside the Box2d. More... | |
self | operator-- (int) |
Postdecrement a iterator2d_box. Iterate to the previous location inside the Box2d. More... | |
Indices accessors | |
int | x1 () const |
Access to the first index of the current iterator2d_box. More... | |
int | i () const |
Access to the first index of the current iterator2d_box. More... | |
int | x2 () const |
Access to the second index of the current iterator2d_box. More... | |
int | j () const |
Access to the second index of the current iterator2d_box. More... | |
Friends | |
Equality comparable operators | |
bool | operator== (const self &i1, const self &i2) |
Equality operator. More... | |
bool | operator!= (const self &i1, const self &i2) |
Inequality operator. More... | |
Strict Weakly comparable operators | |
bool | operator< (const self &i1, const self &i2) |
< operator. More... | |
bool | operator> (const self &i1, const self &i2) |
More... | |
bool | operator<= (const self &i1, const self &i2) |
<= operator. More... | |
bool | operator>= (const self &i1, const self &i2) |
>= operator. More... | |
iterator2d_box operators addons | |
self & | operator+= (const difference_type &d) |
iterator2d_box addition. More... | |
self & | operator-= (const difference_type &d) |
iterator2d_box substraction. More... | |
self | operator+ (const difference_type &d) |
iterator2d_box addition. More... | |
self | operator- (const difference_type &d) |
iterator2d_box substraction. More... | |
reference | operator[] (difference_type d) |
iterator2d_box element assignment operator. Equivalent to *(i + d) = t. More... | |
Container2D::row_iterator | row_begin (size_type row) |
iterator2d_box element assignment operator. More... | |
Container2D::row_iterator | row_end (size_type row) |
iterator2d_box element assignment operator. More... | |
Container2D::reverse_row_iterator | row_rbegin (size_type row) |
iterator2d_box element assignment operator. More... | |
Container2D::reverse_row_iterator | row_rend (size_type row) |
iterator2d_box element assignment operator. More... | |
Container2D::col_iterator | col_begin (size_type col) |
iterator2d_box element assignment operator. More... | |
Container2D::col_iterator | col_end (size_type col) |
iterator2d_box element assignment operator. More... | |
Container2D::reverse_col_iterator | col_rbegin (size_type col) |
iterator2d_box element assignment operator. More... | |
Container2D::reverse_col_iterator | col_rend (size_type col) |
iterator2d_box element assignment operator. More... | |
Container2D::row_range_iterator | row_begin (size_type row, const slip::Range< int > &range) |
iterator2d_box element assignment operator. More... | |
Container2D::row_range_iterator | row_end (size_type row, const slip::Range< int > &range) |
iterator2d_box element assignment operator. More... | |
Container2D::col_range_iterator | col_begin (size_type col, const slip::Range< int > &range) |
iterator2d_box element assignment operator. More... | |
Container2D::col_range_iterator | col_end (size_type col, const slip::Range< int > &range) |
iterator2d_box element assignment operator. More... | |
difference_type | operator- (const self &i1, const self &i2) |
iterator2d_box difference operator. More... | |
This is some iterator to iterate a 2d container into a slip::Box2d area defined by the indices of the 2d container.
Container2D | Type of 2d container in the iterator2d_box |
Definition at line 116 of file Array2d.hpp.
typedef DPoint2d<int> slip::iterator2d_box< T >::difference_type |
Definition at line 126 of file iterator2d_box.hpp.
typedef std::random_access_iterator2d_tag slip::iterator2d_box< T >::iterator_category |
Definition at line 124 of file iterator2d_box.hpp.
typedef Container2D::pointer slip::iterator2d_box< T >::pointer |
Definition at line 127 of file iterator2d_box.hpp.
typedef Container2D::reference slip::iterator2d_box< T >::reference |
Definition at line 128 of file iterator2d_box.hpp.
typedef iterator2d_box slip::iterator2d_box< T >::self |
Definition at line 130 of file iterator2d_box.hpp.
typedef Container2D::size_type slip::iterator2d_box< T >::size_type |
Definition at line 132 of file iterator2d_box.hpp.
typedef Container2D::value_type slip::iterator2d_box< T >::value_type |
Definition at line 125 of file iterator2d_box.hpp.
|
inline |
Constructs a iterator2d_box.
Definition at line 142 of file iterator2d_box.hpp.
|
inline |
Constructs a iterator2d_box.
c | pointer to an existing 2d container |
b | Box2d<int> defining the range of indices to iterate |
Definition at line 152 of file iterator2d_box.hpp.
|
inline |
Constructs a copy of the iterator2d_box o.
o | iterator2d_box to copy. |
Definition at line 162 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
Definition at line 579 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
range | Range of the col to iterate. |
Definition at line 659 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
Definition at line 593 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
range | Range of the col to iterate. |
Definition at line 674 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
Definition at line 606 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
Definition at line 618 of file iterator2d_box.hpp.
|
inline |
Access to the first index of the current iterator2d_box.
Definition at line 700 of file iterator2d_box.hpp.
|
inline |
Access to the second index of the current iterator2d_box.
Definition at line 718 of file iterator2d_box.hpp.
|
inline |
Dereference assignment operator. Returns the element that the current iterator2d_box i point to.
Definition at line 201 of file iterator2d_box.hpp.
|
inline |
iterator2d_box addition.
d | difference_type |
Definition at line 461 of file iterator2d_box.hpp.
|
inline |
Preincrement a iterator2d_box. Iterate to the next location inside the Box2d.
Definition at line 223 of file iterator2d_box.hpp.
|
inline |
Postincrement a iterator2d_box. Iterate to the next location inside the Box2d.
Definition at line 255 of file iterator2d_box.hpp.
|
inline |
iterator2d_box addition.
d | difference_type |
Definition at line 425 of file iterator2d_box.hpp.
|
inline |
iterator2d_box substraction.
d | difference_type |
Definition at line 478 of file iterator2d_box.hpp.
|
inline |
Predecrement a iterator2d_box. Iterate to the previous location inside the Box2d.
Definition at line 274 of file iterator2d_box.hpp.
|
inline |
Postdecrement a iterator2d_box. Iterate to the previous location inside the Box2d.
Definition at line 306 of file iterator2d_box.hpp.
|
inline |
iterator2d_box substraction.
d | difference_type |
Definition at line 443 of file iterator2d_box.hpp.
|
inline |
Definition at line 207 of file iterator2d_box.hpp.
|
inline |
Assign a iterator2d_box.
Assign elements of iterator2d_box in o.
o | iterator2d_box to get the values from. |
Definition at line 180 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator. Equivalent to *(i + d) = t.
d | difference_type. |
Definition at line 512 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
Definition at line 528 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
range | Range of the row to iterate. |
Definition at line 632 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
Definition at line 541 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
range | Range of the row to iterate. |
Definition at line 646 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
Definition at line 554 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
Definition at line 566 of file iterator2d_box.hpp.
|
inline |
Access to the first index of the current iterator2d_box.
Definition at line 691 of file iterator2d_box.hpp.
|
inline |
Access to the second index of the current iterator2d_box.
Definition at line 709 of file iterator2d_box.hpp.
Inequality operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 342 of file iterator2d_box.hpp.
|
friend |
iterator2d_box difference operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 496 of file iterator2d_box.hpp.
< operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 362 of file iterator2d_box.hpp.
<= operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 390 of file iterator2d_box.hpp.
Equality operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 327 of file iterator2d_box.hpp.
operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 376 of file iterator2d_box.hpp.
>= operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 404 of file iterator2d_box.hpp.