www.mooseframework.org
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

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 111 of file TheWarehouse.h.

Member Function Documentation

◆ operator()()

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

Definition at line 114 of file TheWarehouse.h.

115  {
116  size_t h = attrib.hash();
117  hash_combine(h, attrib.id());
118  return h;
119  }
unsigned int id() const
returns the unique attribute ID associated with all attributes that have the same (mose derived) clas...
Definition: TheWarehouse.h:48
void hash_combine(std::size_t &)
Used for hash function specialization for Attribute objects.
Definition: TheWarehouse.h:82
virtual 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: