SLIP
1.4
|
This is some iterator to iterate a 4d container into two Range defined by the indices and strides of the 4d container. More...
#include <component_iterator4d_range.hpp>
Public Types | |
typedef std::random_access_iterator4d_tag | iterator_category |
typedef MultiComponentContainer4d::value_type | Block |
typedef Block::value_type | value_type |
typedef DPoint4d< int > | difference_type |
typedef value_type const * | pointer |
typedef value_type const & | reference |
typedef const_component_iterator4d_range | self |
typedef MultiComponentContainer4d::size_type | size_type |
Public Member Functions | |
reference | operator* () const |
Dereference operator. Returns the element that the current const_component_iterator4d_range i point to. More... | |
pointer | operator-> () const |
Constructors & Destructors | |
const_component_iterator4d_range () | |
Constructs a const_component_iterator4d_range. More... | |
const_component_iterator4d_range (MultiComponentContainer4d *c, std::size_t cp, const slip::Range< int > &r1, const slip::Range< int > &r2, const slip::Range< int > &r3, const slip::Range< int > &r4) | |
Constructs a const_component_iterator4d_range. More... | |
const_component_iterator4d_range (const self &o) | |
Constructs a copy of the const_component_iterator4d_range o. More... | |
Assignment operators and methods | |
self & | operator= (const self &o) |
Assign a const_component_iterator4d_range. More... | |
Forward operators addons | |
self & | operator++ () |
Preincrement a const_component_iterator4d_range. Iterate to the next location inside the Range. More... | |
self | operator++ (int) |
Postincrement a const_component_iterator4d_range. Iterate to the next location inside the Range4d. More... | |
Bidirectional operators addons | |
self & | operator-- () |
Predecrement a const_component_iterator4d_range. Iterate to the previous location inside the Range4d. More... | |
self | operator-- (int) |
Postdecrement a const_component_iterator4d_range. Iterate to the previous location inside the Range4d. More... | |
Indices accessors | |
int | x1 () const |
Access to the first index of the current const_component_iterator4d_range. More... | |
int | t () const |
Access to the first index of the current const_component_iterator4d_range. More... | |
int | x2 () const |
Access to the second index of the current const_component_iterator4d_range. More... | |
int | k () const |
Access to the second index of the current const_component_iterator4d_range. More... | |
int | x3 () const |
Access to the third index of the current const_component_iterator4d_range. More... | |
int | i () const |
Access to the third index of the current const_component_iterator4d_range. More... | |
int | x4 () const |
Access to the fourth index of the current const_component_iterator4d_range. More... | |
int | j () const |
Access to the fourth index of the current const_component_iterator4d_range. More... | |
int | cp () const |
Access to the component index of the current const_component_iterator4d_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_component_iterator4d_range operators addons | |
self & | operator+= (const difference_type &d) |
const_component_iterator4d_range addition. More... | |
self & | operator-= (const difference_type &d) |
const_component_iterator4d_range substraction. More... | |
self | operator+ (const difference_type &d) |
const_component_iterator4d_range addition. More... | |
self | operator- (const difference_type &d) |
const_component_iterator4d_range substraction. More... | |
reference | operator[] (difference_type d) const |
const_component_iterator4d_range element assignment operator. Equivalent to *(i + d). More... | |
MultiComponentContainer4d::const_component_slice_range_iterator | slab_begin (size_type slice, size_type row, size_type col) |
const_component_iterator4d_range element assignment operator. More... | |
MultiComponentContainer4d::const_component_slice_range_iterator | slab_end (size_type slice, size_type row, size_type col) |
const_component_iterator4d_range element assignment operator. More... | |
MultiComponentContainer4d::const_component_slice_range_iterator | slice_begin (size_type slab, size_type row, size_type col) |
const_component_iterator4d_range element assignment operator. More... | |
MultiComponentContainer4d::const_component_slice_range_iterator | slice_end (size_type slab, size_type row, size_type col) |
const_component_iterator4d_range element assignment operator. More... | |
MultiComponentContainer4d::const_component_row_range_iterator | row_begin (size_type slab, size_type slice, size_type row) |
const_component_iterator4d_range element assignment operator. More... | |
MultiComponentContainer4d::const_component_row_range_iterator | row_end (size_type slab, size_type slice, size_type row) |
const_component_iterator4d_range element assignment operator. More... | |
MultiComponentContainer4d::const_component_col_range_iterator | col_begin (size_type slab, size_type slice, size_type col) |
const_component_iterator4d_range element assignment operator. More... | |
MultiComponentContainer4d::const_component_col_range_iterator | col_end (size_type slab, size_type slice, size_type col) |
const_component_iterator4d_range element assignment operator. More... | |
difference_type | operator- (const self &i1, const self &i2) |
const_component_iterator4d_range difference operator. More... | |
This is some iterator to iterate a 4d container into two Range defined by the indices and strides of the 4d container.
MultiComponentContainer4d | Type of 4d container in the const_component_iterator4d_range |
N | number of elements in one block |
Definition at line 900 of file component_iterator4d_range.hpp.
typedef MultiComponentContainer4d::value_type slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::Block |
Definition at line 905 of file component_iterator4d_range.hpp.
typedef DPoint4d<int> slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::difference_type |
Definition at line 907 of file component_iterator4d_range.hpp.
typedef std::random_access_iterator4d_tag slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::iterator_category |
Definition at line 904 of file component_iterator4d_range.hpp.
typedef value_type const* slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::pointer |
Definition at line 908 of file component_iterator4d_range.hpp.
typedef value_type const& slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::reference |
Definition at line 909 of file component_iterator4d_range.hpp.
typedef const_component_iterator4d_range slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::self |
Definition at line 911 of file component_iterator4d_range.hpp.
typedef MultiComponentContainer4d::size_type slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::size_type |
Definition at line 913 of file component_iterator4d_range.hpp.
typedef Block::value_type slip::const_component_iterator4d_range< MultiComponentContainer4d, N >::value_type |
Definition at line 906 of file component_iterator4d_range.hpp.
|
inline |
Constructs a const_component_iterator4d_range.
Definition at line 923 of file component_iterator4d_range.hpp.
|
inline |
Constructs a const_component_iterator4d_range.
c | pointer to an existing 4d container |
r1 | Range<int> defining the range of indices of the first axis to iterate |
r2 | Range<int> defining the range of indices of the second axis to iterate |
r3 | Range<int> defining the range of indices of the third axis to iterate |
r4 | Range<int> defining the range of indices of the fourth axis to iterate |
Definition at line 941 of file component_iterator4d_range.hpp.
|
inline |
Constructs a copy of the const_component_iterator4d_range o.
o | const_component_iterator4d_range to copy. |
Definition at line 962 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slab | offset. |
slice | offset. |
row | offset. |
Definition at line 1540 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slab | offset. |
slice | offset. |
row | offset. |
Definition at line 1560 of file component_iterator4d_range.hpp.
|
inline |
Access to the component index of the current const_component_iterator4d_box.
Definition at line 1654 of file component_iterator4d_range.hpp.
|
inline |
Access to the third index of the current const_component_iterator4d_range.
Definition at line 1625 of file component_iterator4d_range.hpp.
|
inline |
Access to the fourth index of the current const_component_iterator4d_range.
Definition at line 1644 of file component_iterator4d_range.hpp.
|
inline |
Access to the second index of the current const_component_iterator4d_range.
Definition at line 1607 of file component_iterator4d_range.hpp.
|
inline |
Dereference operator. Returns the element that the current const_component_iterator4d_range i point to.
Definition at line 1009 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range addition.
d | difference_type |
Definition at line 1349 of file component_iterator4d_range.hpp.
|
inline |
Preincrement a const_component_iterator4d_range. Iterate to the next location inside the Range.
Definition at line 1033 of file component_iterator4d_range.hpp.
|
inline |
Postincrement a const_component_iterator4d_range. Iterate to the next location inside the Range4d.
Definition at line 1095 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range addition.
d | difference_type |
Definition at line 1303 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range substraction.
d | difference_type |
Definition at line 1364 of file component_iterator4d_range.hpp.
|
inline |
Predecrement a const_component_iterator4d_range. Iterate to the previous location inside the Range4d.
Definition at line 1114 of file component_iterator4d_range.hpp.
|
inline |
Postdecrement a const_component_iterator4d_range. Iterate to the previous location inside the Range4d.
Definition at line 1179 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range substraction.
d | difference_type |
Definition at line 1326 of file component_iterator4d_range.hpp.
|
inline |
Definition at line 1015 of file component_iterator4d_range.hpp.
|
inline |
Assign a const_component_iterator4d_range.
Assign elements of const_component_iterator4d_range in o.
o | const_component_iterator4d_range to get the values from. |
Definition at line 981 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator. Equivalent to *(i + d).
d | difference_type. |
Definition at line 1402 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slab | offset. |
slice | offset. |
row | offset. |
Definition at line 1501 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slab | offset. |
slice | offset. |
row | offset. |
Definition at line 1522 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slice | offset |
row | offset. |
col | offset. |
Definition at line 1425 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slice | offset |
row | offset. |
col | offset. |
Definition at line 1446 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slab | offset. |
row | offset. |
col | offset. |
Definition at line 1463 of file component_iterator4d_range.hpp.
|
inline |
const_component_iterator4d_range element assignment operator.
slab | offset. |
row | offset. |
col | offset. |
Definition at line 1484 of file component_iterator4d_range.hpp.
|
inline |
Access to the first index of the current const_component_iterator4d_range.
Definition at line 1588 of file component_iterator4d_range.hpp.
|
inline |
Access to the first index of the current const_component_iterator4d_range.
Definition at line 1579 of file component_iterator4d_range.hpp.
|
inline |
Access to the second index of the current const_component_iterator4d_range.
Definition at line 1598 of file component_iterator4d_range.hpp.
|
inline |
Access to the third index of the current const_component_iterator4d_range.
Definition at line 1616 of file component_iterator4d_range.hpp.
|
inline |
Access to the fourth index of the current const_component_iterator4d_range.
Definition at line 1635 of file component_iterator4d_range.hpp.
|
friend |
Inequality operator.
i1 | first const_component_iterator4d_range. |
i2 | second const_component_iterator4d_range. |
Definition at line 1217 of file component_iterator4d_range.hpp.
|
friend |
const_component_iterator4d_range difference operator.
i1 | first const_component_iterator4d_range. |
i2 | second const_component_iterator4d_range. |
Definition at line 1380 of file component_iterator4d_range.hpp.
|
friend |
< operator.
i1 | first iterator4d_box. |
i2 | second iterator4d_box. |
Definition at line 1238 of file component_iterator4d_range.hpp.
|
friend |
<= operator.
i1 | first iterator4d_box. |
i2 | second iterator4d_box. |
Definition at line 1266 of file component_iterator4d_range.hpp.
|
friend |
Equality operator.
i1 | first const_component_iterator4d_range. |
i2 | second const_component_iterator4d_range. |
Definition at line 1200 of file component_iterator4d_range.hpp.
|
friend |
operator.
i1 | first iterator4d_box. |
i2 | second iterator4d_box. |
Definition at line 1252 of file component_iterator4d_range.hpp.
|
friend |
>= operator.
i1 | first iterator4d_box. |
i2 | second iterator4d_box. |
Definition at line 1280 of file component_iterator4d_range.hpp.