Mirror reflection library - Lagoon run-time layer 0.5.13

lagoon::polymorph_factory Struct Reference

Abstract interface for polymorphic factories. More...

#include <lagoon/polymorph_factory.hpp>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.

See also:
new_
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_

See also:
create

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

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.