https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | List of all members
std::hash< Attribute > Struct Reference

This template specialization allows Attributes to be used as unordered map key. More...

Public Member Functions

std::size_t operator() (const Attribute &attrib) const
 

Detailed Description

This template specialization allows Attributes to be used as unordered map key.

Definition at line 151 of file TheWarehouse.h.

Member Function Documentation

◆ operator()()

std::size_t std::hash< Attribute >::operator() ( const Attribute attrib) const
inline

Definition at line 154 of file TheWarehouse.h.

155 {
156 std::size_t h = attrib.hash();
157 Moose::hash_combine(h, attrib.id());
158 return h;
159 }
unsigned int id() const
returns the unique attribute ID associated with all attributes that have the same (mose derived) clas...
virtual std::size_t hash() const =0
This function must return a deterministic value that is uniquely determined by the data the attribute...
void hash_combine(std::size_t &)
Used for hash function specialization for Attribute objects.

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