Mirror reflection library - Lagoon run-time layer 0.5.13
|
Abstract interface for polymorphic factories. More...
#include <lagoon/polymorph_factory.hpp>
Public Member Functions | |
virtual raw_ptr | new_ (void)=0 |
Creates a new dynamically allocated instance. | |
virtual boost::any | create (void)=0 |
Creates a new value wrapped in boost::any. |
Abstract interface for polymorphic factories.
Implementations of such factories are generated by using a custom impmlementation of polymorph_factory_builder with the Mirror's factory generator utility and the polymorphic factory framework.
virtual boost::any lagoon::polymorph_factory::create | ( | void | ) | [pure virtual] |
Creates a new value wrapped in boost::any.
This member function is available only if the LAGOON_FACT_WITH_CREATE preprocessor symbol is set to a nonzero integer value.
virtual raw_ptr lagoon::polymorph_factory::new_ | ( | void | ) | [pure virtual] |
Creates a new dynamically allocated instance.
The created object should be disposed via meta_type::delete_