MCPcopy Create free account
hub / github.com/cuberite/cuberite / clear

Method clear

lib/jsoncpp/src/lib_json/json_value.cpp:934–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932
933
934void
935Value::clear()
936{
937 JSON_ASSERT( type_ == nullValue || type_ == arrayValue || type_ == objectValue );
938
939 switch ( type_ )
940 {
941#ifndef JSON_VALUE_USE_INTERNAL_MAP
942 case arrayValue:
943 case objectValue:
944 value_.map_->clear();
945 break;
946#else
947 case arrayValue:
948 value_.array_->clear();
949 break;
950 case objectValue:
951 value_.map_->clear();
952 break;
953#endif
954 default:
955 break;
956 }
957}
958
959void
960Value::resize( UInt newSize )

Callers 15

parseMethod · 0.80
isMultineArrayMethod · 0.80
DeleteHeaderCommentsMethod · 0.80
ReadFileMethod · 0.80
ClearMethod · 0.80
DeleteKeyCommentsMethod · 0.80
GetOutgoingDataMethod · 0.80
SetPointsMethod · 0.80
ClearPermissionMethod · 0.80
ClearRecipesMethod · 0.80
ClearRecipesMethod · 0.80
DigestToJavaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected