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

Function hash

src/ifcgeom/taxonomy.h:170–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 virtual void reverse() { throw taxonomy::topology_error(); }
169 virtual size_t calc_hash() const = 0;
170 virtual size_t hash() const {
171 if (computed_hash_) {
172 return computed_hash_;
173 }
174 computed_hash_ = calc_hash();
175 if (computed_hash_ == 0) {
176 computed_hash_++;
177 }
178 return computed_hash_;
179 }
180
181 item(const IfcUtil::IfcBaseInterface* instance = nullptr) : identity_(counter_++), computed_hash_(0), instance(instance) {}
182

Callers 15

processMethod · 0.85
sv_freeMethod · 0.85
sv_initMethod · 0.85
processMethod · 0.85
sv_freeMethod · 0.85
processMethod · 0.85
sv_initMethod · 0.85
processMethod · 0.85
sv_freeMethod · 0.85
sv_initMethod · 0.85
processMethod · 0.85
sv_freeMethod · 0.85

Calls 1

calc_hashFunction · 0.85

Tested by

no test coverage detected