MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / clear

Method clear

Source/JSON/jsoncpp.cpp:3028–3040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3026bool Value::operator!() const { return isNull(); }
3027
3028void Value::clear() {
3029 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
3030 type_ == objectValue,
3031 "in Json::Value::clear(): requires complex value");
3032 switch (type_) {
3033 case arrayValue:
3034 case objectValue:
3035 value_.map_->clear();
3036 break;
3037 default:
3038 break;
3039 }
3040}
3041
3042void Value::resize(ArrayIndex newSize) {
3043 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue,

Callers 15

ResetConnectionsMethod · 0.45
ClearIDTranslationsMethod · 0.45
StopMultiplayerMethod · 0.45
CheckPendingMessagesMethod · 0.45
RemoveAllAvatarIdsMethod · 0.45
StopListeningMethod · 0.45
SendMessageObjectsMethod · 0.45
ExecuteMethod · 0.45
DeserializeMethod · 0.45
ExecuteMethod · 0.45
PostFrameSwapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected