|
From: <mor...@us...> - 2011-01-18 10:37:50
|
Revision: 3890
http://ecell.svn.sourceforge.net/ecell/?rev=3890&view=rev
Author: moriyoshi
Date: 2011-01-18 10:37:44 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
* Fix the bug that the function signature for the getter of rootSystem cannot
be handled properly.
Modified Paths:
--------------
ecell3/trunk/ecell/pyecell/ecell/_ecs.cpp
Modified: ecell3/trunk/ecell/pyecell/ecell/_ecs.cpp
===================================================================
--- ecell3/trunk/ecell/pyecell/ecell/_ecs.cpp 2011-01-11 08:26:12 UTC (rev 3889)
+++ ecell3/trunk/ecell/pyecell/ecell/_ecs.cpp 2011-01-18 10:37:44 UTC (rev 3890)
@@ -3030,8 +3030,14 @@
.add_static_property( "DM_SEARCH_PATH_SEPARATOR",
&AbstractSimulator::getDMSearchPathSeparator )
.add_property( "rootSystem",
- py::make_function( &AbstractSimulator::getRootSystem,
+ py::make_function(
+ &AbstractSimulator::getRootSystem,
py::return_internal_reference<>() ) )
+ .add_property( "rootSystem",
+ py::make_function(
+ static_cast< System*( AbstractSimulator::* )() const >(
+ &AbstractSimulator::getRootSystem ),
+ py::return_internal_reference<>() ) )
.def( "getClassInfo",
&AbstractSimulator::getClassInfo )
// Stepper-related methods
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|