MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / NodePath

Method NodePath

core/string/node_path.cpp:382–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382NodePath::NodePath(const Vector<StringName> &p_path, bool p_absolute) {
383 if (p_path.is_empty() && !p_absolute) {
384 return;
385 }
386
387 data = memnew(Data);
388 data->refcount.init();
389 data->absolute = p_absolute;
390 data->path = p_path;
391 data->hash_cache_valid = false;
392}
393
394NodePath::NodePath(const Vector<StringName> &p_path, const Vector<StringName> &p_subpath, bool p_absolute) {
395 if (p_path.is_empty() && p_subpath.is_empty() && !p_absolute) {

Callers 1

type_convertMethod · 0.45

Calls 10

vformatFunction · 0.85
find_charMethod · 0.80
substrMethod · 0.80
sizeMethod · 0.65
is_emptyMethod · 0.45
initMethod · 0.45
refMethod · 0.45
lengthMethod · 0.45
push_backMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected