|
| enum | ReturnCode |
| |
| typedef std::map< std::string, FactoryEntry > | FactoryMap |
| |
| typedef FactoryMap::iterator | FactoryMapIt |
| |
| typedef std::map< AbstractClass *, FactoryEntry > | ObjectMap |
| |
| typedef ObjectMap::iterator | ObjectMapIt |
| |
| typedef GlobalFactory< AbstractClass, std::string, std::less< std::string >, AbstractClass *(*)(), void(*)(AbstractClass *&) > * | SingletonClassPtr |
| |
| typedef ::coil::Mutex | Mutex |
| |
| bool | hasFactory (const std::string &id) |
| | Factory presence check. More...
|
| |
| std::vector< std::string > | getIdentifiers () |
| | Get factory ID list. More...
|
| |
| ReturnCode | addFactory (const std::string &id, AbstractClass * creator, void(*)(AbstractClass *&) destructor) |
| | Add factory. More...
|
| |
| ReturnCode | removeFactory (const std::string &id) |
| | Remove factory. More...
|
| |
| AbstractClass * | createObject (const std::string &id) |
| | Create factory object. More...
|
| |
| ReturnCode | deleteObject (const std::string &id, AbstractClass *&obj) |
| | Delete factory object. More...
|
| |
| ReturnCode | deleteObject (AbstractClass *&obj) |
| | Delete factory object. More...
|
| |
| std::vector< AbstractClass * > | createdObjects () |
| | Getting created objects. More...
|
| |
| bool | isProducerOf (AbstractClass *obj) |
| | Whether a object is a product of this factory. More...
|
| |
| ReturnCode | objectToIdentifier (AbstractClass *obj, std::string &id) |
| | Getting class identifier (ID) from a object. More...
|
| |
| AbstractClass * | objectToCreator (AbstractClass *obj) |
| | Getting destructor of the object. More...
|
| |
| void(*)(AbstractClass *&) | objectToDestructor (AbstractClass *obj) |
| | Getting destructor of the object. More...
|
| |
| static GlobalFactory< AbstractClass, std::string, std::less< std::string >, AbstractClass *(*)(), void(*)(AbstractClass *&) > & | instance () |
| | Create instance. More...
|
| |
| | Singleton () |
| | Constructor. More...
|
| |
| | ~Singleton () |
| | Destructor. More...
|
| |
| static coil::Mutex | m_mutex |
| | Mutual exclusion object. More...
|
| |
| static GlobalFactory< AbstractClass, std::string, std::less< std::string >, AbstractClass *(*)(), void(*)(AbstractClass *&) > * | m_instance |
| | SingletonClass object. More...
|
| |
template<class AbstractClass, typename Identifier = std::string, typename Compare = std::less<Identifier>, typename Creator = AbstractClass* (*)(), typename Destructor = void (*)(AbstractClass*&)>
class coil::GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor >
GlobalFactory template class.