MCPcopy Create free account
hub / github.com/Samsung/UTopia / clear

Method clear

external/jsoncpp/jsoncpp.cpp:3296–3310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3294Value::operator bool() const { return !isNull(); }
3295
3296void 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
3312void Value::resize(ArrayIndex newSize) {
3313 JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue,

Callers 9

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

Calls

no outgoing calls

Tested by 1

releaseMethod · 0.36