28 std::vector<size_t> data;
29 data.emplace_back(handle_hash(handle));
30 data.emplace_back(primitive_hash(handle));
54 :
public wmtk::hash<wmtk::attribute::AttributeHandle>
59 :
public wmtk::hash<wmtk::attribute::TypedAttributeHandle<double>>
64 :
public wmtk::hash<wmtk::attribute::TypedAttributeHandle<int64_t>>
69 :
public wmtk::hash<wmtk::attribute::TypedAttributeHandle<char>>
74 :
public wmtk::hash<wmtk::attribute::TypedAttributeHandle<wmtk::Rational>>
78 class std::hash<
wmtk::attribute::MeshAttributeHandle>
79 :
public wmtk::hash<wmtk::attribute::MeshAttributeHandle>
Internal handle representation used by MeshAttributes.
Handle that represents attributes for some mesh.
size_t primitive_hash(const wmtk::attribute::TypedAttributeHandle< T > &handle) const noexcept
size_t handle_hash(const wmtk::attribute::TypedAttributeHandle< T > &handle) const noexcept
size_t operator()(const wmtk::attribute::TypedAttributeHandle< T > &handle) const noexcept
std::size_t vector_hash(const std::vector< size_t > &data)
attribute::TypedAttributeHandle< T > TypedAttributeHandle
constexpr int8_t get_primitive_type_id(PrimitiveType t)
Get a unique integer id corresponding to each primitive type.
attribute::AttributeHandle AttributeHandle