vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
task.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6
7namespace vitrio
8{
9
17class VITRIO_API task
18{
19public:
20 task() = default;
21 task(const task &other) = default;
22 task(task &&other) = default;
23 virtual ~task() = default;
24
25 task& operator=(const task &other) = default;
26 task& operator=(task &&other) = default;
27
31 virtual void run() = 0;
32};
33
34} // namespace vitrio
One unit of work an executor can run.
Definition task.hpp:18
virtual void run()=0
Run this unit of work.