OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::Print::PrintIndexKeyHash Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Print.hpp>

Public Member Functions

std::size_t operator() (const PrintIndexKey &k) const

Detailed Description

Member Function Documentation

◆ operator()()

std::size_t Slic3r::Print::PrintIndexKeyHash::operator() ( const PrintIndexKey & k) const
inline
1441 {
1442 size_t h1 = std::hash<int>{}(k.filament_id);
1443 size_t h2 = std::hash<int>{}(k.extruder_id);
1444 size_t h3 = std::hash<int>{}(static_cast<int>(k.extruder));
1445 size_t h4 = std::hash<int>{}(static_cast<int>(k.nozzle_volume_type));
1446 return h1 ^ (h2 << 8) ^ (h3 << 12) ^ (h4 << 16);
1447 }

References Slic3r::Print::PrintIndexKey::extruder, Slic3r::Print::PrintIndexKey::extruder_id, Slic3r::Print::PrintIndexKey::filament_id, and Slic3r::Print::PrintIndexKey::nozzle_volume_type.


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Print.hpp