ifw-fgf 1.0.0-pre1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
fgf::andor::AndorCtrlEnumKeyHash Struct Reference

A custom hash function for AndorStatEnumKey, which supports hashing of variant-like types (e.g., std::variant). More...

#include <commAdapter.hpp>

Public Member Functions

std::size_t operator() (const AndorCtrlEnumKey &key) const
 Generates a hash value for the given AndorCtrlEnumKey.
 

Detailed Description

A custom hash function for AndorStatEnumKey, which supports hashing of variant-like types (e.g., std::variant).

This struct provides a way to generate a hash value for an instance of AndorCtrlEnumKeyHash, which may contain different types, including enums. The hash function applies the standard C++ hash function (std::hash) to the underlying type of the value stored in the variant.

Member Function Documentation

◆ operator()()

std::size_t fgf::andor::AndorCtrlEnumKeyHash::operator() ( const AndorCtrlEnumKey & key) const
inline

Generates a hash value for the given AndorCtrlEnumKey.

This function visits the variant (AndorCtrlEnumKey) and applies the appropriate hash function to the contained value. If the value is an enum, it uses its underlying type for hashing.

Parameters
keyThe AndorCtrlEnumKey instance to hash. This is expected to be a variant-like type.
Returns
A hash value of type std::size_t, which uniquely identifies the value stored in the variant.

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