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

Method clear

extlibs/vili/src/node.cpp:405–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 void node::clear()
406 {
407 if (is<array>())
408 {
409 std::get<array>(m_data).clear();
410 }
411 else if (is<object>())
412 {
413 std::get<object>(m_data).clear();
414 }
415 else
416 {
417 throw exceptions::invalid_cast(
418 object_type, to_string(type()), VILI_EXC_INFO); // TODO: Add array type
419 }
420 }
421
422 node::operator std::string_view() const
423 {

Callers 15

nextMethod · 0.45
addPatternMethod · 0.45
closeMethod · 0.45
assertionEndedMethod · 0.45
sectionEndedMethod · 0.45
assertionPassedMethod · 0.45
catch.hppFile · 0.45
~ReusableStringStreamMethod · 0.45
makeTestCaseFunction · 0.45
setTagsFunction · 0.45
testGroupStartingMethod · 0.45

Calls 3

invalid_castClass · 0.85
to_stringFunction · 0.70
typeEnum · 0.50

Tested by

no test coverage detected