| 3573 | Value::operator bool() const { return !isNull(); } |
| 3574 | |
| 3575 | void Value::clear() |
| 3576 | { |
| 3577 | JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue || type() == objectValue, |
| 3578 | "in Json::Value::clear(): requires complex value"); |
| 3579 | start_ = 0; |
| 3580 | limit_ = 0; |
| 3581 | switch (type()) |
| 3582 | { |
| 3583 | case arrayValue: |
| 3584 | case objectValue: |
| 3585 | value_.map_->clear(); |
| 3586 | break; |
| 3587 | default: |
| 3588 | break; |
| 3589 | } |
| 3590 | } |
| 3591 | |
| 3592 | void Value::resize(ArrayIndex newSize) |
| 3593 | { |