MCPcopy Create free account
hub / github.com/Kitware/VTK / ToFloat

Method ToFloat

IO/Geometry/vtkOpenFOAMReader.cxx:1454–1460  ·  view source on GitHub ↗

Mostly the same as To , with additional check

Source from the content-addressed store, hash-verified

1452
1453 // Mostly the same as To<float>, with additional check
1454 float ToFloat() const noexcept
1455 {
1456 return this->Type == LABEL ? static_cast<float>(this->Int)
1457 // NOLINTNEXTLINE(readability-avoid-nested-conditional-operator)
1458 : this->Type == SCALAR ? static_cast<float>(this->Double)
1459 : 0.0F;
1460 }
1461
1462 // Mostly the same as To<double>, with additional check
1463 double ToDouble() const noexcept

Callers 10

ReadDimensionSetMethod · 0.45
ToFloatMethod · 0.45
ReadMethod · 0.45
FillFieldMethod · 0.45
DataValueMethod · 0.45
get_att_floatMethod · 0.45
TestSegY2DReaderZoomFunction · 0.45
CheckFieldDataAsArrayFunction · 0.45
ConvertStringToFloatFunction · 0.45
ReadArrayMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestSegY2DReaderZoomFunction · 0.36
CheckFieldDataAsArrayFunction · 0.36