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

Method GetInteger

library/cpp/json/ordered_maps/json_value_ordered.cpp:400–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398 }
399
400 long long TJsonValue::GetInteger() const {
401 if (!IsInteger()) {
402 return 0;
403 }
404 switch (Type) {
405 case JSON_INTEGER:
406 return Value.Integer;
407
408 case JSON_UINTEGER:
409 return Value.UInteger;
410
411 case JSON_DOUBLE:
412 return Value.Double;
413
414 default:
415 Y_ASSERT(false && "Unexpected type.");
416 return 0;
417 }
418 }
419
420 unsigned long long TJsonValue::GetUInteger() const {
421 if (!IsUInteger()) {

Callers 6

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

Calls 2

GetIntegerFunction · 0.70
IsIntegerFunction · 0.50

Tested by

no test coverage detected