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

Method ToFloat

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

Source from the content-addressed store, hash-verified

4180 return this->empty() ? std::string() : this->FirstValue().ToString();
4181 }
4182 float ToFloat() const { return this->empty() ? 0.0F : this->FirstValue().ToFloat(); }
4183 double ToDouble() const { return this->empty() ? 0.0 : this->FirstValue().ToDouble(); }
4184 vtkTypeInt64 ToInt() const { return this->empty() ? 0 : this->FirstValue().ToInt(); }
4185

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
ToFloatMethod · 0.45

Tested by

no test coverage detected