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

Method isInt64

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3741–3759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3739}
3740
3741bool Value::isInt64() const {
3742#if defined(JSON_HAS_INT64)
3743 switch (type()) {
3744 case intValue:
3745 return true;
3746 case uintValue:
3747 return value_.uint_ <= UInt64(maxInt64);
3748 case realValue:
3749 // Note that maxInt64 (= 2^63 - 1) is not exactly representable as a
3750 // double, so double(maxInt64) will be rounded up to 2^63. Therefore we
3751 // require the value to be strictly less than the limit.
3752 return value_.real_ >= double(minInt64) &&
3753 value_.real_ < double(maxInt64) && IsIntegral(value_.real_);
3754 default:
3755 break;
3756 }
3757#endif // JSON_HAS_INT64
3758 return false;
3759}
3760
3761bool Value::isUInt64() const {
3762#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 2

IsIntegralFunction · 0.70
typeEnum · 0.50

Tested by

no test coverage detected