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

Method GetInt

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

Source from the content-addressed store, hash-verified

463
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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected