MCPcopy Create free account
hub / github.com/catboost/catboost / GetUInteger

Method GetUInteger

library/cpp/json/writer/json_value.cpp:377–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375 }
376
377 unsigned long long TJsonValue::GetUInteger() const {
378 if (!IsUInteger()) {
379 return 0;
380 }
381 switch (Type) {
382 case JSON_UINTEGER:
383 return Value.UInteger;
384 case JSON_INTEGER:
385 return Value.Integer;
386 case JSON_DOUBLE:
387 return Value.Double;
388 default:
389 Y_ASSERT(false && "Unexpected type.");
390 return 0;
391 }
392 }
393
394 double TJsonValue::GetDouble() const {
395 if (!IsDouble()) {

Callers 10

Y_UNIT_TESTFunction · 0.45
WriteJsonValueFunction · 0.45
GetUIntegerFunction · 0.45
WriteJsonValueMethod · 0.45
operator==Method · 0.45
Y_UNIT_TESTFunction · 0.45
FromJsonFunction · 0.45
DeserializeFromJsonMethod · 0.45

Calls 1

GetUIntegerFunction · 0.70

Tested by

no test coverage detected