| 2967 | ValueType Value::type() const { return type_; } |
| 2968 | |
| 2969 | int Value::compare(const Value& other) const { |
| 2970 | if (*this < other) |
| 2971 | return -1; |
| 2972 | if (*this > other) |
| 2973 | return 1; |
| 2974 | return 0; |
| 2975 | } |
| 2976 | |
| 2977 | bool Value::operator<(const Value& other) const { |
| 2978 | int typeDelta = type_ - other.type_; |