[pygccxml-commit] SF.net SVN: pygccxml: [162] pyplusplus_dev/unittests/data
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-05-24 20:36:15
|
Revision: 162 Author: roman_yakovenko Date: 2006-05-24 13:36:00 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=162&view=rev Log Message: ----------- commiting full implementation ( no unittests ) for member variable references - small bg fixes Modified Paths: -------------- pyplusplus_dev/pyplusplus/code_creators/member_variable.py pyplusplus_dev/unittests/data/member_variables_to_be_exported.hpp Modified: pyplusplus_dev/pyplusplus/code_creators/member_variable.py =================================================================== --- pyplusplus_dev/pyplusplus/code_creators/member_variable.py 2006-05-24 20:19:26 UTC (rev 161) +++ pyplusplus_dev/pyplusplus/code_creators/member_variable.py 2006-05-24 20:36:00 UTC (rev 162) @@ -510,7 +510,7 @@ def _get_getter_type(self): return declarations.free_function_type_t( return_type=self._get_exported_var_type() - , arguments_types=[ self._get_class_inst_type() ] ) + , arguments_types=[ declarations.reference_t( self._get_class_inst_type() ) ] ) getter_type = property( _get_getter_type ) def _get_setter_full_name(self): @@ -520,7 +520,8 @@ def _get_setter_type(self): return declarations.free_function_type_t( return_type=declarations.void_t() - , arguments_types=[ self._get_class_inst_type(), self._get_exported_var_type() ] ) + , arguments_types=[ declarations.reference_t( self._get_class_inst_type() ) + , self._get_exported_var_type() ] ) setter_type = property( _get_setter_type ) def _get_has_setter( self ): Modified: pyplusplus_dev/unittests/data/member_variables_to_be_exported.hpp =================================================================== --- pyplusplus_dev/unittests/data/member_variables_to_be_exported.hpp 2006-05-24 20:19:26 UTC (rev 161) +++ pyplusplus_dev/unittests/data/member_variables_to_be_exported.hpp 2006-05-24 20:36:00 UTC (rev 162) @@ -118,6 +118,18 @@ const int& m_i; }; +struct A{}; + + +struct B { + B( A& a_ ): a( a_ ){} + A& a; +}; + +struct C { + C( A& a_ ): a( a_ ){} + const A& a; +}; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |