Private Member Functions | Friends | List of all members
coil::GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > Class Template Reference

GlobalFactory template class. More...

#include <Factory.h>

Inheritance diagram for coil::GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor >:
Inheritance graph
[legend]

Private Member Functions

 GlobalFactory ()
 Constructor. More...
 
 ~GlobalFactory ()
 Destructor. More...
 

Friends

class Singleton< GlobalFactory >
 

Additional Inherited Members

- Public Types inherited from coil::Factory< AbstractClass, Identifier, Compare, Creator, Destructor >
typedef std::map< Identifier, FactoryEntryFactoryMap
 
typedef FactoryMap::iterator FactoryMapIt
 
enum  ReturnCode {
  FACTORY_OK, FACTORY_ERROR, ALREADY_EXISTS, NOT_FOUND,
  INVALID_ARG, UNKNOWN_ERROR
}
 
- Public Types inherited from coil::Singleton< GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > >
typedef ::coil::Mutex Mutex
 
typedef GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > * SingletonClassPtr
 
- Public Member Functions inherited from coil::Factory< AbstractClass, Identifier, Compare, Creator, Destructor >
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 Public Member Functions inherited from coil::Singleton< GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > >
static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > & instance ()
 Create instance. More...
 
- Protected Member Functions inherited from coil::Singleton< GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > >
 Singleton ()
 Constructor. More...
 
 ~Singleton ()
 Destructor. More...
 
- Static Protected Attributes inherited from coil::Singleton< GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > >
static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > * m_instance
 SingletonClass object. More...
 
static coil::Mutex m_mutex
 Mutual exclusion object. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

template<class AbstractClass , typename Identifier = std::string, typename Compare = std::less<Identifier>, typename Creator = AbstractClass* (*)(), typename Destructor = void (*)(AbstractClass*&)>
coil::GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor >::GlobalFactory ( )
inlineprivate

Constructor.

Constructor

Definition at line 449 of file coil/common/Factory.h.

template<class AbstractClass , typename Identifier = std::string, typename Compare = std::less<Identifier>, typename Creator = AbstractClass* (*)(), typename Destructor = void (*)(AbstractClass*&)>
coil::GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor >::~GlobalFactory ( )
inlineprivate

Destructor.

Destructor

Definition at line 466 of file coil/common/Factory.h.

Friends And Related Function Documentation

template<class AbstractClass , typename Identifier = std::string, typename Compare = std::less<Identifier>, typename Creator = AbstractClass* (*)(), typename Destructor = void (*)(AbstractClass*&)>
friend class Singleton< GlobalFactory >
friend

Definition at line 468 of file coil/common/Factory.h.


The documentation for this class was generated from the following file:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:59