|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Traversal state (indices and per-operand offsets) of a joint_layout. More...
#include <rexlib/core/layout/joint_cursor.hpp>
Public Member Functions | |
| joint_cursor () noexcept | |
| Default constructor. | |
| joint_cursor (std::size_t ndim, std::vector< std::ptrdiff_t > offsets) | |
| Construct a cursor at its initial state. | |
| joint_cursor (const joint_cursor &other) | |
| joint_cursor (joint_cursor &&other) noexcept | |
| joint_cursor & | operator= (const joint_cursor &other) |
| joint_cursor & | operator= (joint_cursor &&other) noexcept |
| span< const std::size_t > | get_indices () const noexcept |
| Get the current multidimensional indices. | |
| span< std::size_t > | get_indices () noexcept |
| Get the current multidimensional indices. | |
| span< const std::ptrdiff_t > | get_offsets () const noexcept |
| Get the current offsets for each operand. | |
| span< std::ptrdiff_t > | get_offsets () noexcept |
| Get the current offsets for each operand. | |
Traversal state (indices and per-operand offsets) of a joint_layout.
| rexlib::joint_cursor::joint_cursor | ( | std::size_t | ndim, |
| std::vector< std::ptrdiff_t > | offsets | ||
| ) |
Construct a cursor at its initial state.
| ndim | Number of dimensions. Initial indices will correspond to this amount of zeros. |
| offsets | The base offsets for each operand. |
Get the current multidimensional indices.
Unless assigned to another iterator, the pointed span is guaranteed to remain constant.
|
noexcept |
Get the current multidimensional indices.
Unless assigned to another iterator, the pointed span is guaranteed to remain constant.
Get the current offsets for each operand.
Unless assigned to another iterator, the pointed span is guaranteed to remain constant.
|
noexcept |
Get the current offsets for each operand.
Unless assigned to another iterator, the pointed span is guaranteed to remain constant.