MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / GetFloat

Method GetFloat

src/engine/ConsoleObjects.cpp:466–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464 template<> bool VariableImpl<bool>::GetBool() const { return GetData(); }
465 template<> int VariableImpl<bool>::GetInt() const { return GetData()==true ? 1 : 0; }
466 template<> float VariableImpl<bool>::GetFloat() const { return GetData()==true ? 1.f : 0.f; }
467 template<> std::string const& VariableImpl<bool>::GetString() const
468 {
469 static const std::string _true = "true", _false = "false";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected