MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / hash_components

Function hash_components

src/ifcgeom/taxonomy.h:264–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 }
263
264 uint32_t hash_components() const {
265 size_t h = std::hash<size_t>{}(T::RowsAtCompileTime);
266 boost::hash_combine(h, std::hash<size_t>{}(T::ColsAtCompileTime));
267 if (components_) {
268 for (int i = 0; i < components_->size(); ++i) {
269 auto elem = *(components_->data() + (size_t)i);
270 boost::hash_combine(h, std::hash<typename T::Scalar>()(elem));
271 }
272 }
273 return (uint32_t)h;
274 }
275 };
276
277 struct IFC_GEOM_API matrix4 : public item, public eigen_base<Eigen::Matrix4d> {

Callers 2

calc_hashFunction · 0.85
taxonomy.hFile · 0.85

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected