14 template <> FactoryManager* Singleton<FactoryManager>::msInstance =
nullptr;
15 template <>
const char* Singleton<FactoryManager>::mClassTypeName =
"FactoryManager";
37 mIsInitialise =
false;
43 mRegisterFactoryItems[_category][_type] = _delegate;
48 MapRegisterFactoryItem::iterator category = mRegisterFactoryItems.find(_category);
49 if (category == mRegisterFactoryItems.end())
53 MapFactoryItem::iterator type = category->second.find(_type);
54 if (type == category->second.end())
59 category->second.erase(type);
64 MapRegisterFactoryItem::iterator category = mRegisterFactoryItems.find(_category);
65 if (category == mRegisterFactoryItems.end())
69 mRegisterFactoryItems.erase(category);
74 MapRegisterFactoryItem::iterator category = mRegisterFactoryItems.find(_category);
75 if (category == mRegisterFactoryItems.end())
81 MapFactoryItem::iterator type = category->second.find(typeName);
82 if (type == category->second.end())
86 if (type->second.empty())
120 MapRegisterFactoryItem::iterator category = mRegisterFactoryItems.find(_category);
121 if (category == mRegisterFactoryItems.end())
125 MapFactoryItem::iterator type = category->second.find(_type);
126 if (type == category->second.end())