CUBRID Engine
latest
|
#include <object_factory.hpp>
Public Member Functions | |
template<typename object_type > | |
int | register_creator (object_key k, std::function< object_base *()> object_creator=default_creator< object_type >) |
object_base * | create_object (object_key k) |
Static Private Member Functions | |
template<typename object_type > | |
static object_base * | default_creator () |
Private Attributes | |
std::map< object_key, std::function< object_base *()> > | m_creators_map |
Definition at line 39 of file object_factory.hpp.
|
inline |
Definition at line 58 of file object_factory.hpp.
References cubbase::factory< object_key, object_base >::m_creators_map, and NULL.
|
inlinestaticprivate |
Definition at line 70 of file object_factory.hpp.
|
inline |
Definition at line 43 of file object_factory.hpp.
References assert, and cubbase::factory< object_key, object_base >::m_creators_map.
|
private |
Definition at line 73 of file object_factory.hpp.
Referenced by cubbase::factory< object_key, object_base >::create_object(), and cubbase::factory< object_key, object_base >::register_creator().