|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Non-owning read-only reference to an array. More...
#include <rexlib/core/ndarray/const_array_ref.hpp>
Non-owning read-only reference to an array.
A const_array_ref refers to the contents of an array without sharing its ownership and only allows read-only semantics with it. It is intended to be used as a parameter type at interface boundaries where ownership does not need to be extended, analogously to std::string_view. The referenced array must outlive the const_array_ref; do not store const_array_ref objects.
|
explicitnoexcept |
Construct a const_array_ref from an implementation pointer.
| implementation | The implementation referenced by this. |
Construct a const_array_ref referencing an array.
| other | The array to be referenced. Must outlive this const_array_ref. |
|
noexcept |
Construct a const_array_ref referencing a const_array.
| other | The const_array to be referenced. Must outlive this const_array_ref. |
|
noexcept |
Construct a const_array_ref from an array_ref.
| other | The array_ref whose referenced array is to be referenced. |
|
noexcept |
Get the tracker of the commands that access the memory of this array.
Arrays obtained from one another share one tracker. Arrays built separately over the same storage do not.
|
noexcept |
Get the descriptor of this array.
|
noexcept |
Get a pointer to the implementation.
Get the storage of this array.
Get a shared pointer to the storage of this array.