Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator > Class Template Reference

#include <object_factory.h>

Public Member Functions

ObjectCreator create (UniqueIdType id)
 
bool subscribe (UniqueIdType id, ObjectCreator creator)
 
bool unregister (UniqueIdType id)
 

Static Public Member Functions

static ThisClassinstance ()
 

Private Types

typedef std::map< UniqueIdType, ObjectCreator > ObjectRegistry
 
typedef ObjectFactory< BaseClass, UniqueIdType, ObjectCreator > ThisClass
 

Private Member Functions

 ObjectFactory ()
 

Private Attributes

ObjectRegistry object_registry
 

Detailed Description

template<typename BaseClass, typename UniqueIdType, typename ObjectCreator = BaseClass* (*)()>
class rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >

Definition at line 74 of file object_factory.h.

Member Typedef Documentation

◆ ObjectRegistry

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
typedef std::map<UniqueIdType, ObjectCreator> rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::ObjectRegistry
private

Definition at line 77 of file object_factory.h.

◆ ThisClass

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
typedef ObjectFactory<BaseClass,UniqueIdType,ObjectCreator> rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::ThisClass
private

Definition at line 76 of file object_factory.h.

Constructor & Destructor Documentation

◆ ObjectFactory()

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::ObjectFactory ( )
inlineprivate

Definition at line 80 of file object_factory.h.

Member Function Documentation

◆ create()

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
ObjectCreator rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::create ( UniqueIdType  id)
inline

Definition at line 97 of file object_factory.h.

◆ instance()

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
static ThisClass& rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::instance ( )
inlinestatic

Definition at line 108 of file object_factory.h.

◆ subscribe()

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
bool rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::subscribe ( UniqueIdType  id,
ObjectCreator  creator 
)
inline

Definition at line 84 of file object_factory.h.

◆ unregister()

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
bool rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::unregister ( UniqueIdType  id)
inline

Definition at line 92 of file object_factory.h.

Member Data Documentation

◆ object_registry

template<typename BaseClass , typename UniqueIdType , typename ObjectCreator = BaseClass* (*)()>
ObjectRegistry rtflann::ObjectFactory< BaseClass, UniqueIdType, ObjectCreator >::object_registry
private

Definition at line 114 of file object_factory.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:29