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... | |
B | 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, F > | creator_ |
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 >
|
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 | ( | U | 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 | ( | U | unique_id | ) |
Registers a C object with the unique id of type U.
Member Data Documentation
◆ creator_
template<typename B , typename U >
|
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: