rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
array.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "array_descriptor.hpp"
6#include "const_array.hpp"
7#include "../platform/dynamic_shared_object.h"
8
9#include <memory>
10
11namespace rexlib
12{
13
14class buffer;
15
16
17class access_hazard_tracker;
18class array_implementation;
19
165
166} // namespace rexlib
Tracks the commands that access a piece of memory.
Definition access_hazard_tracker.hpp:29
Description of the memory representation of a multidimensional array.
Definition array_descriptor.hpp:22
Container for multidimensional numeric data.
Definition array.hpp:31
array share() noexcept
Obtain an alias for this array.
const_array share_const() const noexcept
Obtain a read-only alias for this array.
array(std::shared_ptr< buffer > storage, array_descriptor descriptor)
Construct an array from its components.
const array_implementation * get_implementation() const noexcept
Get a pointer to the implementation.
array(std::shared_ptr< const array_implementation > implementation) noexcept
Construct an array from a shared pointer to the implementation.
const array_descriptor & get_descriptor() const noexcept
Get the descriptor 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.
std::shared_ptr< buffer > share_storage() noexcept
Get a shared pointer to the storage of this array.
array()
Construct an uninitialized array.
buffer * get_storage() noexcept
Get the storage of this array.
Represents an untyped memory allocation at a given memory resource.
Definition buffer.hpp:25
Read-only view into an array.
Definition const_array.hpp:29
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10