vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_scratch_storage.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/byte.hpp>
6#include <vitrio/export.hpp>
7
8#include <cstddef>
9
10namespace vitrio
11{
12
24{
25public:
26 image_scratch_storage() noexcept;
29 virtual ~image_scratch_storage();
30
32 operator=(const image_scratch_storage &other) = delete;
34
41 virtual byte* get_data() noexcept = 0;
42
49 virtual const byte* get_data() const noexcept = 0;
50
56 virtual std::size_t get_size() const noexcept = 0;
57};
58
59} // namespace vitrio
Memory in which a scratch keeps its copies.
Definition image_scratch_storage.hpp:24
virtual byte * get_data() noexcept=0
Get the block of bytes.
A view of a contiguous sequence of elements.
Definition span.hpp:29