vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_scratch_entry.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6#include <vitrio/image_transfer_plan.hpp>
7
8#include <memory>
9
10namespace vitrio
11{
12
13class array;
15class image_reader;
16
34class VITRIO_API image_scratch_entry
35{
36public:
37 image_scratch_entry() noexcept;
38 image_scratch_entry(const image_scratch_entry &other) = delete;
39 image_scratch_entry(image_scratch_entry &&other) = delete;
40 virtual ~image_scratch_entry();
41
42 image_scratch_entry& operator=(const image_scratch_entry &other) = delete;
43 image_scratch_entry& operator=(image_scratch_entry &&other) = delete;
44
73 array destination,
74 image_transfer_plan regions,
75 std::shared_ptr<completion_notifier> done
76 ) const = 0;
77
102 virtual void store_async(
103 std::shared_ptr<const image_reader> file,
104 image_transfer_plan regions,
105 std::shared_ptr<completion_notifier> done
106 ) = 0;
107};
108
109} // namespace vitrio
A multidimensional array of numbers in host memory.
Definition array.hpp:37
Where a finished unit of work is reported.
Definition completion_notifier.hpp:20
Abstract read-only view of one image file.
Definition image_reader.hpp:38
virtual void store_async(std::shared_ptr< const image_reader > file, image_transfer_plan regions, std::shared_ptr< completion_notifier > done)=0
Take in regions of the file, out of a reader over it, and report once they are held.
virtual image_transfer_plan read_async(array destination, image_transfer_plan regions, std::shared_ptr< completion_notifier > done) const =0
Start reading the regions of a plan that are held, and answer the rest.
The regions to transfer between one file and one array.
Definition image_transfer_plan.hpp:34