|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
Loads the regions of a transaction plan into one array. More...
#include <vitrio/image_loader.hpp>

Public Member Functions | |
| image_loader (const image_loader &other)=delete | |
| image_loader (image_loader &&other)=delete | |
| image_loader & | operator= (const image_loader &other)=delete |
| image_loader & | operator= (image_loader &&other)=delete |
| virtual std::shared_ptr< completion > | load (array destination, const image_transaction_plan &plan, std::shared_ptr< const image_transfer_sanitizer > sanitizer) const =0 |
| Load every region a transaction plan names. | |
Loads the regions of a transaction plan into one array.
Every region a plan names is read out of its file and into the array. The reads may still be under way when load returns; the completion it returns says when they are done and reports what failed.
|
pure virtual |
Load every region a transaction plan names.
May return before the reads are done. The completion returned is ready once every region has been read or has failed, and rethrows what the first failure threw.
The regions of each file are shown to sanitizer beside the extents of that file and of destination, and what it answers is read in their place. What it refuses is reported through the completion. The elements of destination no region reached are left as they were.
| destination | Where the regions land. |
| plan | The transaction to load. |
| sanitizer | What becomes of the regions that do not fit. |
| std::invalid_argument | If sanitizer is null. |
Implemented in vitrio::executor_image_loader.