MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / clear

Method clear

vrclient_x64/jsoncpp.cpp:3347–3363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3345bool Value::operator!() const { return isNull(); }
3346
3347void Value::clear() {
3348 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
3349 type_ == objectValue,
3350 "in Json::Value::clear(): requires complex value");
3351 start_ = 0;
3352 limit_ = 0;
3353 delete default_value_;
3354 default_value_ = nullptr;
3355 switch (type_) {
3356 case arrayValue:
3357 case objectValue:
3358 value_.map_->clear();
3359 break;
3360 default:
3361 break;
3362 }
3363}
3364
3365void Value::resize(ArrayIndex newSize) {
3366 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue,

Callers 4

parseMethod · 0.80
getValidReaderKeysFunction · 0.80
isMultineArrayMethod · 0.80
getValidWriterKeysFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected