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

Method clear

src/jsoncpp.cpp:3348–3364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 14

ShutdownMethod · 0.80
ShutdownMethod · 0.80
ShutdownMethod · 0.80
ShutdownMethod · 0.80
SetSplitterPositionMethod · 0.80
parseMethod · 0.80
getValidReaderKeysFunction · 0.80
isMultineArrayMethod · 0.80
getValidWriterKeysFunction · 0.80
ParseStringListFromJsonFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected