|
| typedef std::map< Identifier, FactoryEntry > | FactoryMap |
| |
| typedef FactoryMap::iterator | FactoryMapIt |
| |
| enum | ReturnCode {
FACTORY_OK,
FACTORY_ERROR,
ALREADY_EXISTS,
NOT_FOUND,
INVALID_ARG,
UNKNOWN_ERROR
} |
| |
| typedef ::coil::Mutex | Mutex |
| |
| typedef GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > * | SingletonClassPtr |
| |
| ReturnCode | addFactory (const Identifier &id, Creator creator, Destructor destructor) |
| | Add factory. More...
|
| |
| AbstractClass * | createObject (const Identifier &id) |
| | Create factory object. More...
|
| |
| void | deleteObject (const Identifier &id, AbstractClass *&obj) |
| | Delete factory object. More...
|
| |
| void | deleteObject (AbstractClass *&obj) |
| | Delete factory object. More...
|
| |
| std::vector< Identifier > | getIdentifiers () |
| | Get factory ID list. More...
|
| |
| bool | hasFactory (const Identifier &id) |
| | Factory presence check. More...
|
| |
| ReturnCode | removeFactory (const Identifier &id) |
| | Remove factory. More...
|
| |
| static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > & | instance () |
| | Create instance. More...
|
| |
| | Singleton () |
| | Constructor. More...
|
| |
| | ~Singleton () |
| | Destructor. More...
|
| |
| static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > * | m_instance |
| | SingletonClass object. More...
|
| |
| static coil::Mutex | m_mutex |
| | Mutual exclusion 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.
Definition at line 423 of file coil/common/Factory.h.