|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Abstract base for keys stored in an program_cache. More...
#include <rexlib/core/dispatch/program_cache_key.hpp>
Public Member Functions | |
| 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 |
| virtual std::size_t | hash () const noexcept=0 |
| Hash of the wrapped key. | |
| virtual bool | equals (const program_cache_key &other) const noexcept=0 |
| Equality against another key. | |
Abstract base for keys stored in an program_cache.
|
pure virtualnoexcept |
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. |
Implemented in rexlib::typed_program_cache_key< K >.
|
pure virtualnoexcept |
Hash of the wrapped key.
Implemented in rexlib::typed_program_cache_key< K >.