MCPcopy Create free account
hub / github.com/Kitware/CMake / clear

Method clear

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:890–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888Value::operator bool() const { return !isNull(); }
889
890void Value::clear() {
891 JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue ||
892 type() == objectValue,
893 "in Json::Value::clear(): requires complex value");
894 start_ = 0;
895 limit_ = 0;
896 switch (type()) {
897 case arrayValue:
898 case objectValue:
899 value_.map_->clear();
900 break;
901 default:
902 break;
903 }
904}
905
906void Value::resize(ArrayIndex newSize) {
907 JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue,

Callers 8

parseMethod · 0.45
readValueMethod · 0.45
readObjectMethod · 0.45
writeMethod · 0.45
isMultilineArrayMethod · 0.45
newStreamWriterMethod · 0.45
clearAllStateMethod · 0.45
handle_signatureMethod · 0.45

Calls 1

typeClass · 0.50

Tested by

no test coverage detected