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

Method clear

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3328–3342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3326Value::operator bool() const { return !isNull(); }
3327
3328void Value::clear() {
3329 JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue ||
3330 type() == objectValue,
3331 "in Json::Value::clear(): requires complex value");
3332 start_ = 0;
3333 limit_ = 0;
3334 switch (type()) {
3335 case arrayValue:
3336 case objectValue:
3337 value_.map_->clear();
3338 break;
3339 default:
3340 break;
3341 }
3342}
3343
3344void Value::resize(ArrayIndex newSize) {
3345 JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue,

Callers 15

RequestDataMethod · 0.45
CleanCellsMethod · 0.45
apply0Method · 0.45
apply0Method · 0.45
apply0Method · 0.45
clearFunction · 0.45
applyMethod · 0.45
apply0Method · 0.45
apply0Method · 0.45
PIO_DATA_HDF5Method · 0.45
~PIO_DATA_HDF5Method · 0.45
~PIO_DATA_PIOMethod · 0.45

Calls 1

typeEnum · 0.50

Tested by 15

ResetMethod · 0.36
TestDelimitedTextWriterFunction · 0.36
TestReadLineToFunction · 0.36
TestStringParseFunction · 0.36
TestStreambufFunction · 0.36
TestParallelUGFunction · 0.36
TestFindAllCellsFunction · 0.36
FillArrayMethod · 0.36
TestSameNumPolylinesFunction · 0.36
TestUnequalNumPolylinesFunction · 0.36
TestMultiBlockFilterFunction · 0.36