MCPcopy Create free account
hub / github.com/Illumina/paragraph / clear

Method clear

external/jsoncpp/jsoncpp.cpp:3436–3450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3434Value::operator bool() const { return ! isNull(); }
3435
3436void Value::clear() {
3437 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
3438 type_ == objectValue,
3439 "in Json::Value::clear(): requires complex value");
3440 start_ = 0;
3441 limit_ = 0;
3442 switch (type_) {
3443 case arrayValue:
3444 case objectValue:
3445 value_.map_->clear();
3446 break;
3447 default:
3448 break;
3449 }
3450}
3451
3452void Value::resize(ArrayIndex newSize) {
3453 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue,

Callers 8

parseMethod · 0.45
readValueMethod · 0.45
readObjectMethod · 0.45
getValidReaderKeysFunction · 0.45
writeMethod · 0.45
isMultilineArrayMethod · 0.45
newStreamWriterMethod · 0.45
getValidWriterKeysFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected