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

Method GetInteger

library/cpp/json/writer/json_value.cpp:357–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 long long TJsonValue::GetInteger() const {
358 if (!IsInteger()) {
359 return 0;
360 }
361 switch (Type) {
362 case JSON_INTEGER:
363 return Value.Integer;
364
365 case JSON_UINTEGER:
366 return Value.UInteger;
367
368 case JSON_DOUBLE:
369 return Value.Double;
370
371 default:
372 Y_ASSERT(false && "Unexpected type.");
373 return 0;
374 }
375 }
376
377 unsigned long long TJsonValue::GetUInteger() const {
378 if (!IsUInteger()) {

Callers 15

WriteJsonValueFunction · 0.45
GetIntegerFunction · 0.45
WriteJsonValueMethod · 0.45
operator==Method · 0.45
Y_UNIT_TESTFunction · 0.45
TuneHyperparamsCVFunction · 0.45
TuneHyperparamsTrainTestFunction · 0.45
AddClassLabelsFunction · 0.45
ClassLabelToStringFunction · 0.45
LoadMethod · 0.45
FloatSplitFromJsonFunction · 0.45

Calls 2

GetIntegerFunction · 0.70
IsIntegerFunction · 0.50

Tested by

no test coverage detected