MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / clear

Method clear

Sources/Dependencies/jsoncpp/value.cpp:988–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986 }
987
988 void Value::clear() {
989 JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue || type() == objectValue,
990 "in Json::Value::clear(): requires complex value");
991 start_ = 0;
992 limit_ = 0;
993 switch (type()) {
994 case arrayValue:
995 case objectValue:
996 value_.map_->clear();
997 break;
998 default:
999 break;
1000 }
1001 }
1002
1003 void Value::resize(ArrayIndex newSize) {
1004 JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue, "in Json::Value::resize(): requires arrayValue");

Callers 5

writeMethod · 0.45
isMultilineArrayMethod · 0.45
parseMethod · 0.45
readValueMethod · 0.45
readObjectMethod · 0.45

Calls 1

typeClass · 0.85

Tested by

no test coverage detected