eolain_cxx: Fix C++ support for new Eolian features
authorVitor Sousa <vitorsousasilva@gmail.com>
Thu, 26 Mar 2015 14:48:09 +0000 (11:48 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 14 Apr 2015 04:06:57 +0000 (01:06 -0300)
commitce36f0be936f218d87055cf21b643ab327f07853
treefde18f8d5e3e33b57583ba321e61e7f4a07de224
parent72604d49574dba6d540d631895facbbc9b12bb2f
eolain_cxx: Fix C++ support for new Eolian features

Added optional constructor methods for C++ Eolian wrappers.
Changed the interface of wrappers' main constructors.
If there are optional constructor methods they should be passed as variadic
template argument at the end of the constructor.
To support variadic template arguments, the optional "parent" parameter is
now the first parameter and there is another constructor without the
"parent" parameter.

Checking for @optinal and @nullable attributes instead of @nonull.
Now @nonull is the default, and eina::optional is only used when @optional
or @nullable attribute is specified.

The names of constructor methods no longer have the class name prefixed.

Added unit tests for checking the binding of optional constructors.
Added new .eo file to be used in the test.

Changed the generated documentation of constructors.

Changed the efl::eo::inherit accordingly, to address these new features.
Now the constructor methods should be explicit called in the
efl::eo::inherit constructor, which will receive them via variadic
template arguments.

Added another constructor to efl::eo::inherit for passing the parent
object.

Updated some tests and examples to follow the new interface.

Removed some code that is no longer necessary.

Also, fix Eolian C++ support for constructing properties. fix
assertion when parsing constructing properties.

Now if a property is a constructing property eolian_cxx will generate a
constructor method that have the property name (without the "_set" suffix).
19 files changed:
src/Makefile_Eolian_Cxx.am
src/Makefile_Eolian_Cxx_Helper.am
src/bin/eolian_cxx/convert.cc
src/bin/eolian_cxx/eolian_wrappers.hh
src/bindings/eo_cxx/eo_cxx_interop.hh
src/bindings/eo_cxx/eo_inherit.hh
src/bindings/eo_cxx/eo_inherit_bindings.hh
src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc
src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
src/examples/eolian_cxx/eolian_cxx_simple_01.cc
src/lib/eolian_cxx/eo_types.hh
src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
src/lib/eolian_cxx/grammar/eo_class_generator.hh
src/lib/eolian_cxx/grammar/inheritance_base_generator.hh
src/lib/eolian_cxx/grammar/type_generator.hh
src/tests/eolian_cxx/eolian_cxx_suite.cc
src/tests/eolian_cxx/eolian_cxx_test_binding.cc
src/tests/eolian_cxx/generic.c [new file with mode: 0644]
src/tests/eolian_cxx/generic.eo [new file with mode: 0644]