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

Method getTypeString

src/Base/Unit.cpp:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280std::string Unit::getTypeString() const
281{
282 if (_name.empty()) {
283 const auto spec = std::ranges::find(unitSpecs, _exps, &UnitSpec::exps);
284 return std::string(spec == unitSpecs.end() ? "" : spec->name);
285 }
286
287 return std::string {_name.data(), _name.size()};
288}
289
290std::pair<std::vector<size_t>, std::vector<size_t>> Unit::nonZeroValsIndexes() const
291{

Callers 8

getTypeMethod · 0.80
translateMethod · 0.80
determineTypeVarSetMethod · 0.80
typeOkForVarSetMethod · 0.80
DlgUnitsCalculatorMethod · 0.80
valueChangedMethod · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80

Calls 5

findFunction · 0.50
emptyMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected