MCPcopy Create free account
hub / github.com/axmolengine/axmol / getNamespace

Method getNamespace

core/base/Properties.cpp:676–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676Properties* Properties::getNamespace(std::string_view id, bool searchNames, bool recurse) const
677{
678 AXASSERT(!id.empty(), "invalid id");
679
680 for (const auto& it : _namespaces)
681 {
682 Properties* p = it;
683 if ((searchNames ? p->_namespace : p->_id) == id)
684 return p;
685
686 if (recurse)
687 {
688 // Search recursively.
689 p = p->getNamespace(id, searchNames, true);
690 if (p)
691 return p;
692 }
693 }
694
695 return nullptr;
696}
697
698const char* Properties::getNamespace() const
699{

Callers 7

initWithFileMethod · 0.80
parsePropertiesMethod · 0.80
parseTechniqueMethod · 0.80
parsePassMethod · 0.80
parseShaderMethod · 0.80
mergeWithMethod · 0.80
printPropertiesFunction · 0.80

Calls 2

emptyMethod · 0.45
c_strMethod · 0.45

Tested by 1

printPropertiesFunction · 0.64