|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Non-owning reference to an array. More...
#include <rexlib/core/ndarray/array_ref.hpp>
Public Member Functions | |
| array_ref () noexcept | |
| Construct an uninitialized array_ref. | |
| array_ref (const array_implementation *implementation) noexcept | |
| Construct an array_ref from an implementation pointer. | |
| array_ref (array &other) noexcept | |
| Construct an array_ref referencing an array. | |
| array_ref (const array_ref &other) noexcept=default | |
| array_ref (array_ref &&other) noexcept=default | |
| array_ref & | operator= (const array_ref &other) noexcept=default |
| array_ref & | operator= (array_ref &&other) noexcept=default |
| const array_descriptor & | get_descriptor () const noexcept |
| Get the descriptor of this array. | |
| buffer * | get_storage () noexcept |
| Get the storage of this array. | |
| const buffer * | get_storage () const noexcept |
| Get the storage of this array. | |
| std::shared_ptr< buffer > | share_storage () noexcept |
| Get a shared pointer to the storage of this array. | |
| std::shared_ptr< const buffer > | share_storage () const noexcept |
| Get a shared pointer to the storage of this array. | |
| access_hazard_tracker * | get_access_hazard_tracker () const noexcept |
| Get the tracker of the commands that access the memory of this array. | |
| const array_implementation * | get_implementation () const noexcept |
| Get a pointer to the implementation. | |
Non-owning reference to an array.
An array_ref refers to the contents of an array without sharing its ownership. 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 array_ref; do not store array_ref objects.
|
explicitnoexcept |
Construct an array_ref from an implementation pointer.
| implementation | The implementation referenced by this. |
|
noexcept |
|
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.
|
noexcept |
Get the storage of this array.
Get a shared pointer to the storage of this array.
|
noexcept |
Get a shared pointer to the storage of this array.