SLIP
1.4
|
This is some iterator to iterate a 2d container into a Box 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::const_pointer | pointer |
typedef Container2D::const_reference | reference |
typedef const_iterator2d_box | self |
typedef Container2D::size_type | size_type |
Public Member Functions | |
reference | operator* () const |
Dereference operator. Returns the element that the current const_iterator2d_box i point to. More... | |
pointer | operator-> () const |
Constructors & Destructors | |
const_iterator2d_box () | |
Constructs a const_iterator2d_box. More... | |
const_iterator2d_box (Container2D *c, const Box2d< int > &b) | |
Constructs a const_iterator2d_box. More... | |
const_iterator2d_box (const self &o) | |
Constructs a copy of the const_iterator2d_box o. More... | |
Assignment operators and methods | |
self & | operator= (const self &o) |
Assign a const_iterator2d_box. More... | |
Forward operators addons | |
self & | operator++ () |
Preincrement a const_iterator2d_box. Iterate to the next location inside the Box2d. More... | |
self | operator++ (int) |
Postincrement a const_iterator2d_box. Iterate to the next location inside the Box2d. More... | |
Bidirectional operators addons | |
self & | operator-- () |
Predecrement a const_iterator2d_box. Iterate to the previous location inside the Box2d. More... | |
self | operator-- (int) |
Postdecrement a const_iterator2d_box. Iterate to the previous location inside the Box2d. More... | |
Indices accessors | |
int | x1 () const |
Access to the first index of the current const_iterator2d_box. More... | |
int | i () const |
Access to the first index of the current const_iterator2d_box. More... | |
int | x2 () const |
Access to the second index of the current const_iterator2d_box. More... | |
int | j () const |
Access to the second index of the current const_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... | |
const_iterator2d_box operators addons | |
self & | operator+= (const difference_type &d) |
const_iterator2d_box addition. More... | |
self & | operator-= (const difference_type &d) |
const_iterator2d_box substraction. More... | |
self | operator+ (const difference_type &d) |
const_iterator2d_box addition. More... | |
self | operator- (const difference_type &d) |
const_iterator2d_box substraction. More... | |
reference | operator[] (difference_type d) const |
const_iterator2d_box element assignment operator. Equivalent to *(i + d). More... | |
Container2D::const_row_iterator | row_begin (size_type row) const |
const_iterator2d_box element assignment operator. More... | |
Container2D::const_row_iterator | row_end (size_type row) const |
const_iterator2d_box element assignment operator. More... | |
Container2D::const_reverse_row_iterator | row_rbegin (size_type row) const |
iterator2d_box element assignment operator. More... | |
Container2D::const_reverse_row_iterator | row_rend (size_type row) const |
iterator2d_box element assignment operator. More... | |
Container2D::const_col_iterator | col_begin (size_type col) const |
const_iterator2d_box element assignment operator. More... | |
Container2D::const_col_iterator | col_end (size_type col) const |
const_iterator2d_box element assignment operator. More... | |
Container2D::const_reverse_col_iterator | col_rbegin (size_type col) const |
iterator2d_box element assignment operator. More... | |
Container2D::const_reverse_col_iterator | col_rend (size_type col) const |
iterator2d_box element assignment operator. More... | |
difference_type | operator- (const self &i1, const self &i2) |
const_iterator2d_box difference operator. More... | |
This is some iterator to iterate a 2d container into a Box area defined by the indices of the 2d container.
Container2D | Type of 2d container in the const_iterator2d_box |
Definition at line 122 of file Array2d.hpp.
typedef DPoint2d<int> slip::const_iterator2d_box< T >::difference_type |
Definition at line 772 of file iterator2d_box.hpp.
typedef std::random_access_iterator2d_tag slip::const_iterator2d_box< T >::iterator_category |
Definition at line 770 of file iterator2d_box.hpp.
typedef Container2D::const_pointer slip::const_iterator2d_box< T >::pointer |
Definition at line 773 of file iterator2d_box.hpp.
typedef Container2D::const_reference slip::const_iterator2d_box< T >::reference |
Definition at line 774 of file iterator2d_box.hpp.
typedef const_iterator2d_box slip::const_iterator2d_box< T >::self |
Definition at line 776 of file iterator2d_box.hpp.
typedef Container2D::size_type slip::const_iterator2d_box< T >::size_type |
Definition at line 778 of file iterator2d_box.hpp.
typedef Container2D::value_type slip::const_iterator2d_box< T >::value_type |
Definition at line 771 of file iterator2d_box.hpp.
|
inline |
Constructs a const_iterator2d_box.
Definition at line 788 of file iterator2d_box.hpp.
|
inline |
Constructs a const_iterator2d_box.
c | pointer to an existing 2d container |
b | Box2d<int> defining the range of indices to iterate |
Definition at line 798 of file iterator2d_box.hpp.
|
inline |
Constructs a copy of the const_iterator2d_box o.
o | const_iterator2d_box to copy. |
Definition at line 808 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box element assignment operator.
col | offset. |
Definition at line 1233 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box element assignment operator.
col | offset. |
Definition at line 1247 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
Definition at line 1259 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
col | offset. |
Definition at line 1271 of file iterator2d_box.hpp.
|
inline |
Access to the first index of the current const_iterator2d_box.
Definition at line 1298 of file iterator2d_box.hpp.
|
inline |
Access to the second index of the current const_iterator2d_box.
Definition at line 1316 of file iterator2d_box.hpp.
|
inline |
Dereference operator. Returns the element that the current const_iterator2d_box i point to.
Definition at line 850 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box addition.
d | difference_type |
Definition at line 1108 of file iterator2d_box.hpp.
|
inline |
Preincrement a const_iterator2d_box. Iterate to the next location inside the Box2d.
Definition at line 873 of file iterator2d_box.hpp.
|
inline |
Postincrement a const_iterator2d_box. Iterate to the next location inside the Box2d.
Definition at line 904 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box addition.
d | difference_type |
Definition at line 1072 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box substraction.
d | difference_type |
Definition at line 1125 of file iterator2d_box.hpp.
|
inline |
Predecrement a const_iterator2d_box. Iterate to the previous location inside the Box2d.
Definition at line 922 of file iterator2d_box.hpp.
|
inline |
Postdecrement a const_iterator2d_box. Iterate to the previous location inside the Box2d.
Definition at line 954 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box substraction.
d | difference_type |
Definition at line 1090 of file iterator2d_box.hpp.
|
inline |
Definition at line 857 of file iterator2d_box.hpp.
|
inline |
Assign a const_iterator2d_box.
Assign elements of const_iterator2d_box in o.
o | const_iterator2d_box to get the values from. |
Definition at line 826 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box element assignment operator. Equivalent to *(i + d).
d | difference_type. |
Definition at line 1160 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box element assignment operator.
row | offset. |
Definition at line 1179 of file iterator2d_box.hpp.
|
inline |
const_iterator2d_box element assignment operator.
row | offset. |
Definition at line 1193 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
Definition at line 1206 of file iterator2d_box.hpp.
|
inline |
iterator2d_box element assignment operator.
row | offset. |
Definition at line 1220 of file iterator2d_box.hpp.
|
inline |
Access to the first index of the current const_iterator2d_box.
Definition at line 1289 of file iterator2d_box.hpp.
|
inline |
Access to the second index of the current const_iterator2d_box.
Definition at line 1307 of file iterator2d_box.hpp.
Inequality operator.
i1 | first const_iterator2d_box. |
i2 | second const_iterator2d_box. |
Definition at line 990 of file iterator2d_box.hpp.
|
friend |
const_iterator2d_box difference operator.
i1 | first const_iterator2d_box. |
i2 | second const_iterator2d_box. |
Definition at line 1143 of file iterator2d_box.hpp.
< operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 1009 of file iterator2d_box.hpp.
<= operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 1037 of file iterator2d_box.hpp.
Equality operator.
i1 | first const_iterator2d_box. |
i2 | second const_iterator2d_box. |
Definition at line 975 of file iterator2d_box.hpp.
operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 1023 of file iterator2d_box.hpp.
>= operator.
i1 | first iterator2d_box. |
i2 | second iterator2d_box. |
Definition at line 1051 of file iterator2d_box.hpp.