rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rexlib::program_cache_key Class Referenceabstract

Abstract base for keys stored in an program_cache. More...

#include <rexlib/core/dispatch/program_cache_key.hpp>

Inheritance diagram for rexlib::program_cache_key:
rexlib::typed_program_cache_key< K >

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.
 

Detailed Description

Abstract base for keys stored in an program_cache.

Member Function Documentation

◆ equals()

virtual bool rexlib::program_cache_key::equals ( const program_cache_key &  other) const
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.

Parameters
otherThe key to compare against.
Returns
true Both keys refer to the same entry.
false The keys differ in value.

Implemented in rexlib::typed_program_cache_key< K >.

◆ hash()

virtual std::size_t rexlib::program_cache_key::hash ( ) const
pure virtualnoexcept

Hash of the wrapped key.

Returns
std::size_t The hash value.

Implemented in rexlib::typed_program_cache_key< K >.


The documentation for this class was generated from the following file: