SLIP
1.4
|
This is some iterator to iterate a 3d container into a plane area defined by the subscripts of the 3d container. More...
#include <iterator3d_plane.hpp>
Public Types | |
typedef std::random_access_iterator2d_tag | iterator_category |
typedef Container3D::value_type | value_type |
typedef DPoint2d< int > | difference_type |
typedef Container3D::pointer | pointer |
typedef Container3D::reference | reference |
typedef iterator3d_plane | self |
typedef Container3D::size_type | size_type |
Public Member Functions | |
reference | operator* () |
Dereference assignment operator. Returns the element that the current iterator3d_plane i point to. More... | |
const reference | operator* () const |
Dereference operator. Returns the element that the current iterator3d_plane i point to. More... | |
pointer | operator-> () const |
pointer | operator-> () |
Constructors & Destructors | |
iterator3d_plane () | |
Constructs a iterator3d_plane. More... | |
iterator3d_plane (Container3D *c, PLANE_ORIENTATION P, const int plane_coordinate, const Box2d< int > &b) | |
Constructs a iterator3d_plane. More... | |
iterator3d_plane (Container3D *c, const Box3d< int > &b) | |
Constructs a iterator3d_plane. More... | |
iterator3d_plane (const self &o) | |
Constructs a copy of the iterator3d_plane o. More... | |
Assignment operators and methods | |
self & | operator= (const self &o) |
Assign a iterator3d_plane. More... | |
Forward operators addons | |
self & | operator++ () |
Preincrement a iterator3d_plane. Iterate to the next location inside the Box3d. More... | |
self | operator++ (int) |
Postincrement a iterator3d_plane. Iterate to the next location inside the Box3d. More... | |
Bidirectional operators addons | |
self & | operator-- () |
Predecrement a iterator3d_plane. Iterate to the previous location inside the Box3d. More... | |
self | operator-- (int) |
Postdecrement a iterator3d_plane. Iterate to the previous location inside the Box3d. More... | |
Subscripts accessors | |
int | x1 () const |
Access to the first subscript of the current iterator3d_plane. More... | |
int | x2 () const |
Access to the second subscript of the current iterator3d_plane. More... | |
int | xp () const |
Access to the plane subscript of the current iterator3d_plane. More... | |
int | zerodim () const |
Access to the plane axe number of the current iterator3d_plane. 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... | |
iterator3d_plane operators addons | |
self & | operator+= (const difference_type &d) |
iterator3d_plane addition. More... | |
self & | operator-= (const difference_type &d) |
iterator3d_plane substraction. More... | |
self | operator+ (const difference_type &d) |
iterator3d_plane addition. More... | |
self | operator- (const difference_type &d) |
iterator3d_plane substraction. More... | |
reference | operator[] (difference_type d) |
iterator3d_plane element assignment operator. Equivalent to *(k + d) = t. More... | |
pointer * | operator[] (int n) |
iterator3d_plane element assignment operator. Equivalent to *(k + n). More... | |
difference_type | operator- (const self &i1, const self &i2) |
iterator3d_plane difference operator. More... | |
This is some iterator to iterate a 3d container into a plane area defined by the subscripts of the 3d container.
Container3D | Type of 3d container in the iterator3d_plane |
Definition at line 137 of file iterator3d_plane.hpp.
typedef DPoint2d<int> slip::iterator3d_plane< Container3D >::difference_type |
Definition at line 171 of file iterator3d_plane.hpp.
typedef std::random_access_iterator2d_tag slip::iterator3d_plane< Container3D >::iterator_category |
Definition at line 169 of file iterator3d_plane.hpp.
typedef Container3D::pointer slip::iterator3d_plane< Container3D >::pointer |
Definition at line 172 of file iterator3d_plane.hpp.
typedef Container3D::reference slip::iterator3d_plane< Container3D >::reference |
Definition at line 173 of file iterator3d_plane.hpp.
typedef iterator3d_plane slip::iterator3d_plane< Container3D >::self |
Definition at line 175 of file iterator3d_plane.hpp.
typedef Container3D::size_type slip::iterator3d_plane< Container3D >::size_type |
Definition at line 177 of file iterator3d_plane.hpp.
typedef Container3D::value_type slip::iterator3d_plane< Container3D >::value_type |
Definition at line 170 of file iterator3d_plane.hpp.
|
inline |
Constructs a iterator3d_plane.
Definition at line 187 of file iterator3d_plane.hpp.
|
inline |
Constructs a iterator3d_plane.
c | pointer to an existing 3d container |
P | number of the zero dimension (the axe that is perpendicular to the plane of b) |
plane_coordinate | coordinate of the plane along the zero dimension axe |
b | Box2d<int> defining the range of the plane to iterate |
Definition at line 202 of file iterator3d_plane.hpp.
|
inline |
Constructs a iterator3d_plane.
c | pointer to an existing 3d container |
b | Box3d<int> defining the range of plane to iterate |
Definition at line 216 of file iterator3d_plane.hpp.
|
inline |
Constructs a copy of the iterator3d_plane o.
o | iterator3d_plane to copy. |
Definition at line 250 of file iterator3d_plane.hpp.
|
inline |
Dereference assignment operator. Returns the element that the current iterator3d_plane i point to.
Definition at line 291 of file iterator3d_plane.hpp.
|
inline |
Dereference operator. Returns the element that the current iterator3d_plane i point to.
Definition at line 305 of file iterator3d_plane.hpp.
|
inline |
iterator3d_plane addition.
d | difference_type |
Definition at line 566 of file iterator3d_plane.hpp.
|
inline |
Preincrement a iterator3d_plane. Iterate to the next location inside the Box3d.
Definition at line 334 of file iterator3d_plane.hpp.
|
inline |
Postincrement a iterator3d_plane. Iterate to the next location inside the Box3d.
Definition at line 362 of file iterator3d_plane.hpp.
|
inline |
iterator3d_plane addition.
d | difference_type |
Definition at line 530 of file iterator3d_plane.hpp.
|
inline |
iterator3d_plane substraction.
d | difference_type |
Definition at line 581 of file iterator3d_plane.hpp.
|
inline |
Predecrement a iterator3d_plane. Iterate to the previous location inside the Box3d.
Definition at line 381 of file iterator3d_plane.hpp.
|
inline |
Postdecrement a iterator3d_plane. Iterate to the previous location inside the Box3d.
Definition at line 410 of file iterator3d_plane.hpp.
|
inline |
iterator3d_plane substraction.
d | difference_type |
Definition at line 548 of file iterator3d_plane.hpp.
|
inline |
Definition at line 312 of file iterator3d_plane.hpp.
|
inline |
Definition at line 318 of file iterator3d_plane.hpp.
|
inline |
Assign a iterator3d_plane.
Assign elements of iterator3d_plane in o.
o | iterator3d_plane to get the values from. |
Definition at line 268 of file iterator3d_plane.hpp.
|
inline |
iterator3d_plane element assignment operator. Equivalent to *(k + d) = t.
d | difference_type. |
Definition at line 612 of file iterator3d_plane.hpp.
|
inline |
iterator3d_plane element assignment operator. Equivalent to *(k + n).
n | offset. |
Definition at line 631 of file iterator3d_plane.hpp.
|
inline |
Access to the first subscript of the current iterator3d_plane.
Definition at line 651 of file iterator3d_plane.hpp.
|
inline |
Access to the second subscript of the current iterator3d_plane.
Definition at line 661 of file iterator3d_plane.hpp.
|
inline |
Access to the plane subscript of the current iterator3d_plane.
Definition at line 671 of file iterator3d_plane.hpp.
|
inline |
Access to the plane axe number of the current iterator3d_plane.
Definition at line 680 of file iterator3d_plane.hpp.
Inequality operator.
i1 | first iterator3d_plane. |
i2 | second iterator3d_plane. |
Definition at line 447 of file iterator3d_plane.hpp.
|
friend |
iterator3d_plane difference operator.
i1 | first iterator3d_plane. |
i2 | second iterator3d_plane. |
Definition at line 596 of file iterator3d_plane.hpp.
< operator.
i1 | first iterator3d_plane. |
i2 | second iterator3d_plane. |
Definition at line 467 of file iterator3d_plane.hpp.
<= operator.
i1 | first iterator3d_plane. |
i2 | second iterator3d_plane. |
Definition at line 495 of file iterator3d_plane.hpp.
Equality operator.
i1 | first iterator3d_plane. |
i2 | second iterator3d_plane. |
Definition at line 431 of file iterator3d_plane.hpp.
operator.
i1 | first iterator3d_plane. |
i2 | second iterator3d_plane. |
Definition at line 481 of file iterator3d_plane.hpp.
>= operator.
i1 | first iterator3d_plane. |
i2 | second iterator3d_plane. |
Definition at line 509 of file iterator3d_plane.hpp.