MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / clear

Method clear

src/share/jsoncpp/jsoncpp.cpp:3391–3405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3389bool Value::operator!() const { return isNull(); }
3390
3391void Value::clear() {
3392 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
3393 type_ == objectValue,
3394 "in Json::Value::clear(): requires complex value");
3395 start_ = 0;
3396 limit_ = 0;
3397 switch (type_) {
3398 case arrayValue:
3399 case objectValue:
3400 value_.map_->clear();
3401 break;
3402 default:
3403 break;
3404 }
3405}
3406
3407void Value::resize(ArrayIndex newSize) {
3408 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue,

Callers 4

parseMethod · 0.45
getValidReaderKeysFunction · 0.45
isMultineArrayMethod · 0.45
getValidWriterKeysFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected