| 3294 | Value::operator bool() const { return !isNull(); } |
| 3295 | |
| 3296 | void Value::clear() { |
| 3297 | JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue || |
| 3298 | type() == objectValue, |
| 3299 | "in Json::Value::clear(): requires complex value"); |
| 3300 | start_ = 0; |
| 3301 | limit_ = 0; |
| 3302 | switch (type()) { |
| 3303 | case arrayValue: |
| 3304 | case objectValue: |
| 3305 | value_.map_->clear(); |
| 3306 | break; |
| 3307 | default: |
| 3308 | break; |
| 3309 | } |
| 3310 | } |
| 3311 | |
| 3312 | void Value::resize(ArrayIndex newSize) { |
| 3313 | JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue, |
no outgoing calls