Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
|
Extra information needed by the iterator to perform its work. More...
#include <mapping_iterator.hpp>
Inherits key_compare.
Public Member Functions | |
Mapping () | |
Build an uninitialized mapping data object. More... | |
Mapping (const typename Container::key_compare &c, dimension_type m) | |
Builds required mapping data from the given key comparison functor, dimension and mapping dimension. More... | |
Container::key_compare | key_comp () const |
Public Attributes | |
dimension_type | mapping_dim |
The current dimension of iteration. More... | |
Extra information needed by the iterator to perform its work.
This information is copied to each iterator from a given container.
Although it may be possible to modify this information directly from it's members, it may be unwise to do so, as it could invalidate the iterator and cause the program to behave unexpectedly. If any of this information needs to be modified, it is probably recommended to create a new iterator altogether.
Ct | The container to which these iterator relate to. |
Definition at line 42 of file mapping_iterator.hpp.
spatial::details::Mapping< Container >::Mapping | ( | ) |
Build an uninitialized mapping data object.
Definition at line 45 of file mapping_iterator.hpp.
spatial::details::Mapping< Container >::Mapping | ( | const typename Container::key_compare & | c, |
dimension_type | m | ||
) |
Builds required mapping data from the given key comparison functor, dimension and mapping dimension.
c | The container being iterated. |
m | The mapping dimension used in the iteration. |
Definition at line 55 of file mapping_iterator.hpp.
Container::key_compare spatial::details::Mapping< Container >::key_comp | ( | ) | const |
Definition at line 59 of file mapping_iterator.hpp.
dimension_type spatial::details::Mapping< Container >::mapping_dim |
The current dimension of iteration.
You can modify this key if you suddenly want the iterator to change dimension of iteration. However this field must always satisfy:
Rank being the template rank provider for the iterator.
Definition at line 75 of file mapping_iterator.hpp.