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

Method contains

extlibs/vili/src/node.cpp:531–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529 }
530
531 bool node::contains(const std::string& key) const
532 {
533 if (is<object>())
534 {
535 const vili::object& map = std::get<object>(m_data);
536 if (map.find(key) != map.cend())
537 {
538 return true;
539 }
540 return false;
541 }
542 else
543 {
544 throw exceptions::invalid_cast(object_type, to_string(type()), VILI_EXC_INFO);
545 }
546 }
547
548 void node::erase(size_t index)
549 {

Callers 8

mergeMethod · 0.95
WindowMethod · 0.80
loadMethod · 0.80
initInputMethod · 0.80
initResourcesMethod · 0.80
initLoggerMethod · 0.80
loadMethod · 0.80
pushMethod · 0.80

Calls 5

invalid_castClass · 0.85
to_stringFunction · 0.70
typeEnum · 0.50
findMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected