MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / clear

Method clear

Source/ThirdParty/jsoncpp/src/lib_json/json_value.cpp:967–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965Value::operator bool() const { return ! isNull(); }
966
967void Value::clear() {
968 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
969 type_ == objectValue,
970 "in Json::Value::clear(): requires complex value");
971 start_ = 0;
972 limit_ = 0;
973 switch (type_) {
974 case arrayValue:
975 case objectValue:
976 value_.map_->clear();
977 break;
978 default:
979 break;
980 }
981}
982
983void Value::resize(ArrayIndex newSize) {
984 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