MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / clear

Method clear

AgentBench.old/src/tasks/card_game/logic/src/jsoncpp/jsoncpp.cpp:3378–3392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3376Value::operator bool() const { return ! isNull(); }
3377
3378void Value::clear() {
3379 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
3380 type_ == objectValue,
3381 "in Json::Value::clear(): requires complex value");
3382 start_ = 0;
3383 limit_ = 0;
3384 switch (type_) {
3385 case arrayValue:
3386 case objectValue:
3387 value_.map_->clear();
3388 break;
3389 default:
3390 break;
3391 }
3392}
3393
3394void Value::resize(ArrayIndex newSize) {
3395 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