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

Method GetUInteger

library/cpp/json/ordered_maps/json_value_ordered.cpp:420–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419
420 unsigned long long TJsonValue::GetUInteger() const {
421 if (!IsUInteger()) {
422 return 0;
423 }
424 switch (Type) {
425 case JSON_UINTEGER:
426 return Value.UInteger;
427 case JSON_INTEGER:
428 return Value.Integer;
429 case JSON_DOUBLE:
430 return Value.Double;
431 default:
432 Y_ASSERT(false && "Unexpected type.");
433 return 0;
434 }
435 }
436
437 double TJsonValue::GetDouble() const {
438 if (!IsDouble()) {

Callers 6

GetUIntegerFunction · 0.45
TJsonValueMethod · 0.45
operator==Method · 0.45
WriteJsonValueMethod · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 1

GetUIntegerFunction · 0.70

Tested by

no test coverage detected