template class cvflann::ObjectFactory

#include <object_factory.h>

template <
    typename BaseClass,
    typename UniqueIdType,
    typename ObjectCreator = BaseClass* (*)()
    >
class ObjectFactory
{
public:
    // methods

    ObjectCreator
    create(UniqueIdType id);

    bool
    subscribe(
        UniqueIdType id,
        ObjectCreator creator
        );

    bool
    unregister(UniqueIdType id);

    static
    ThisClass&
    instance();
};