MCPcopy Create free account
hub / github.com/Kitware/VTK / isInt

Method isInt

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3699–3716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3697bool Value::isBool() const { return type() == booleanValue; }
3698
3699bool Value::isInt() const {
3700 switch (type()) {
3701 case intValue:
3702#if defined(JSON_HAS_INT64)
3703 return value_.int_ >= minInt && value_.int_ <= maxInt;
3704#else
3705 return true;
3706#endif
3707 case uintValue:
3708 return value_.uint_ <= UInt(maxInt);
3709 case realValue:
3710 return value_.real_ >= minInt && value_.real_ <= maxInt &&
3711 IsIntegral(value_.real_);
3712 default:
3713 break;
3714 }
3715 return false;
3716}
3717
3718bool Value::isUInt() const {
3719 switch (type()) {

Callers 2

GetIntValueFunction · 0.80
GetIntArrayFunction · 0.80

Calls 2

IsIntegralFunction · 0.70
typeEnum · 0.50

Tested by

no test coverage detected