rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
program_cache_key.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/platform/dynamic_shared_object.h>
6
7#include <cstddef>
8
9namespace rexlib
10{
11
15class REXLIB_API program_cache_key
16{
17public:
18 program_cache_key() noexcept;
20 const program_cache_key &other
21 ) = delete;
23 program_cache_key &&other
24 ) = delete;
25 virtual ~program_cache_key();
26
28 operator=(const program_cache_key &other) = delete;
30 operator=(program_cache_key &&other) = delete;
31
37 virtual std::size_t hash() const noexcept = 0;
38
50 virtual
51 bool equals(const program_cache_key &other) const noexcept = 0;
52};
53
54} // namespace rexlib
Abstract base for keys stored in an program_cache.
Definition program_cache_key.hpp:16
virtual std::size_t hash() const noexcept=0
Hash of the wrapped key.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10