MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getStringHasher

Method getStringHasher

src/App/Document.cpp:1276–1294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274}
1275
1276StringHasherRef Document::getStringHasher(const int idx) const
1277{
1278 StringHasherRef hasher;
1279 if (idx < 0) {
1280 if (UseHasher.getValue()) {
1281 return d->Hasher;
1282 }
1283 return hasher;
1284 }
1285 const auto it = d->hashers.right.find(idx);
1286 if (it == d->hashers.right.end()) {
1287 hasher = new StringHasher;
1288 d->hashers.right.insert(HasherMap::right_map::value_type(idx, hasher));
1289 }
1290 else {
1291 hasher = it->second;
1292 }
1293 return hasher;
1294}
1295
1296struct DocExportStatus
1297{

Callers 15

checkGeoElementMapMethod · 0.80
buildShapeMethod · 0.80
buildInternalsMethod · 0.80
onSketchRestoreMethod · 0.80
executeMethod · 0.80
getElementSourceFunction · 0.80
_getTopoShapeFunction · 0.80
setValueMethod · 0.80
setPyObjectMethod · 0.80
RestoreMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 4

getValueMethod · 0.45
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected