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

Method get

core/2d/ComponentContainer.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35ComponentContainer::~ComponentContainer() {}
36
37Component* ComponentContainer::get(std::string_view name) const
38{
39 Component* ret = nullptr;
40
41 auto it = _componentMap.find(name);
42 if (it != _componentMap.end())
43 {
44 ret = it->second;
45 }
46
47 return ret;
48}
49
50bool ComponentContainer::add(Component* com)
51{

Callers 3

getSpriteSheetLoaderMethod · 0.45
initWithFadeMethod · 0.45
getComponentMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected