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

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

#include <TheWarehouse.h>

Public Member Functions

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

Detailed Description

template<>
struct std::hash< Attribute >

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

Definition at line 150 of file TheWarehouse.h.

Member Function Documentation

◆ operator()()

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

Definition at line 153 of file TheWarehouse.h.

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

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