|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Default key wrapper for value types that model std::hash and equality comparison. More...
#include <rexlib/core/dispatch/typed_program_cache_key.hpp>
Public Member Functions | |
| typed_program_cache_key (K key) | |
| std::size_t | hash () const noexcept override |
| Hash of the wrapped key. | |
| bool | equals (const program_cache_key &other) const noexcept override |
| Equality against another key. | |
| const K & | get_key () const noexcept |
Public Member Functions inherited from rexlib::program_cache_key | |
| program_cache_key (const program_cache_key &other)=delete | |
| program_cache_key (program_cache_key &&other)=delete | |
| program_cache_key & | operator= (const program_cache_key &other)=delete |
| program_cache_key & | operator= (program_cache_key &&other)=delete |
Default key wrapper for value types that model std::hash and equality comparison.
| K | The wrapped key type. Must be hashable through std::hash and equality-comparable |
|
overridevirtualnoexcept |
Equality against another key.
The cache guarantees that this method is only invoked with keys of the same type. Implementations may rely on that precondition and skip any runtime type check.
| other | The key to compare against. |
Implements rexlib::program_cache_key.
|
overridevirtualnoexcept |