class rgpot::cache::KeyHash

Overview

Struct to hold the hash and string key for caching. More…

#include <PotentialCache.hpp>
 
class KeyHash {
public:
    // fields
 
    size_t hash;
 
    // construction
 
    KeyHash(size_t _hash);
 
    // methods
 
    rocksdb::Slice slice() const;
};

Detailed Documentation

Struct to hold the hash and string key for caching.

Fields

size_t hash

The numeric hash value.

Construction

KeyHash(size_t _hash)

Constructor for KeyHash.

Parameters:

_hash

The numeric hash to wrap.

Methods

rocksdb::Slice slice() const

Returns a binary slice view of the hash for RocksDB.

Returns:

A rocksdb::Slice wrapping the raw hash bytes.