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

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

Public Member Functions

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

Detailed Description

Member Function Documentation

◆ operator()()

std::size_t Slic3r::Print::FilamentIndexKeyHash::operator() ( const FilamentIndexKey & k) const
inline
1431 {
1432 size_t h1 = std::hash<int>{}(k.filament_id);
1433 size_t h2 = std::hash<int>{}(static_cast<int>(k.extruder));
1434 size_t h3 = std::hash<int>{}(static_cast<int>(k.nozzle_volume_type));
1435 return h1 ^ (h2 << 8) ^ (h3 << 12);
1436 }

References Slic3r::Print::FilamentIndexKey::extruder, Slic3r::Print::FilamentIndexKey::filament_id, and Slic3r::Print::FilamentIndexKey::nozzle_volume_type.


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