ObjectFactory0< B(void), U > Class Template Reference

#include <ObjectFactory0.h>

Public Member Functions

template<typename C >
bool Register (U unique_id)
 Registers a C object with the unique id of type U. More...
 
Create (U unique_id)
 Returns a B object and create an object identified by unique_id of type U of type *B. More...
 

Protected Types

typedef B(* F) (void)
 F is a function pointer to a function returning a B, without parameters. More...
 

Protected Attributes

std::map< U, Fcreator_
 internal data structure to keep the association between the unique identifiers and the function pointers More...
 

Member Typedef Documentation

◆ F

template<typename B , typename U >
typedef B(* ObjectFactory0< B(void), U >::F) (void)
protected

F is a function pointer to a function returning a B, without parameters.

Member Function Documentation

◆ Create()

template<typename B , typename U >
B ObjectFactory0< B(void), U >::Create ( unique_id)

Returns a B object and create an object identified by unique_id of type U of type *B.

◆ Register()

template<typename B , typename U >
template<typename C >
bool ObjectFactory0< B(void), U >::Register ( unique_id)

Registers a C object with the unique id of type U.

Member Data Documentation

◆ creator_

template<typename B , typename U >
std::map<U, F> ObjectFactory0< B(void), U >::creator_
protected

internal data structure to keep the association between the unique identifiers and the function pointers


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