Revision: 741
http://svn.sourceforge.net/pygccxml/?rev=741&view=rev
Author: roman_yakovenko
Date: 2006-11-21 01:10:20 -0800 (Tue, 21 Nov 2006)
Log Message:
-----------
just a simple check to see that branch is working properly
Modified Paths:
--------------
pyplusplus_dev_ft/pyplusplus/function_transformers/controllers.py
Modified: pyplusplus_dev_ft/pyplusplus/function_transformers/controllers.py
===================================================================
--- pyplusplus_dev_ft/pyplusplus/function_transformers/controllers.py 2006-11-21 09:06:32 UTC (rev 740)
+++ pyplusplus_dev_ft/pyplusplus/function_transformers/controllers.py 2006-11-21 09:10:20 UTC (rev 741)
@@ -54,29 +54,48 @@
class mem_fun_controller_t( controller_base_t ):
def __init__( self, function ):
controller_base_t.__init__( self, function )
- self.__transformed_args = function.arguments[:]
- self.__transformed_return_type = function.return_type
+ self.__wrapper_args = function.arguments[:]
+ self.__wrapper_return_type = function.return_type
self.__return_variables = []
self.__pre_call = []
self.__post_call = []
self.__save_return_value_stmt = None
- self.__input_params = [ arg.name for arg in function.arguments ]
+ self.__arg_expressions = [ arg.name for arg in function.arguments ]
self.__return_stmt = None
@property
- def transformed_args( self ):
- return self.__transformed_args
-
- def __get_transformed_return_type( self ):
- return self.__transformed_return_type
- def __set_transformed_return_type( self, type_ ):
+ def wrapper_args( self ):
+ return self.__wrapper_args
+
+ def remove_wrapper_arg( self, name ):
+ for index, arg in enumerate( self.wrapper_args ):
+ if arg.name == name:
+ del self.wrapper_args[ index ]
+ return
+ else:
+ raise LookupError( "Unable to remove '%s' argument - not found!" % name )
+
+ @property
+ def arg_expressions( self ):
+ return self.__arg_expressions
+
+ def modify_argument_expression( self, index, expression ):
+ self.arg_expressions[ index ] = expression
+
+ def __get_wrapper_return_type( self ):
+ return self.__wrapper_return_type
+ def __set_wrapper_return_type( self, type_ ):
if isinstane( type, types.StringTypes ):
type_ = declarations.dummy_type_t( type_ )
- self.__transformed_return_type = type_
- transformed_return_type = property( __get_transformed_return_type, __set_transformed_return_type )
+ self.__wrapper_return_type = type_
+ wrapper_return_type = property( __get_wrapper_return_type, __set_wrapper_return_type )
+
+ @property
+ def return_variables( self ):
+ return self.__return_variables
- def add_return_variable( self, variable_name ):
+ def return_variable( self, variable_name ):
self.__return_variables.append( name )
@property
@@ -103,6 +122,9 @@
self.__input_params[ index ] = var_name_or_expr
@property
- def return_stmt
+ def return_stmt( self ):
+ return self.__return_stmt
-
+ def set_return_stmt( self, stmt ):
+ self.__return_stmt = stmt
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|