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

Method size

extlibs/vili/src/node.cpp:387–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386
387 size_t node::size() const
388 {
389 if (is<array>())
390 {
391 return std::get<array>(m_data).size();
392 }
393 if (is<object>())
394 {
395 return std::get<object>(m_data).size();
396 }
397 throw exceptions::invalid_cast(object_type, to_string(type()), VILI_EXC_INFO);
398 }
399
400 bool node::empty() const
401 {

Callers 10

dump_objectMethod · 0.95
emptyMethod · 0.95
eraseMethod · 0.45
node.cppFile · 0.45
truncate_floatFunction · 0.45
to_doubleFunction · 0.45
to_longFunction · 0.45
value_typeFunction · 0.45
specialize_templateMethod · 0.45
applyMethod · 0.45

Calls 3

invalid_castClass · 0.85
to_stringFunction · 0.70
typeEnum · 0.50

Tested by

no test coverage detected