Example #1
0
 def function_type(self):
     """returns function type. See L{type_t} hierarchy"""
     if self.has_static:
         return cpptypes.free_function_type_t( return_type=self.return_type
                                        , arguments_types=[ arg.type for arg in self.arguments ] )
     else:
         return cpptypes.member_function_type_t( class_inst=self.parent
                                        , return_type=self.return_type
                                        , arguments_types=[ arg.type for arg in self.arguments ]
                                        , has_const=self.has_const )
Example #2
0
 def function_type(self):
     """returns function type. See :class:`type_t` hierarchy"""
     if self.has_static:
         return cpptypes.free_function_type_t(
             return_type=self.return_type,
             arguments_types=[arg.type for arg in self.arguments])
     else:
         return cpptypes.member_function_type_t(
             class_inst=self.parent,
             return_type=self.return_type,
             arguments_types=[arg.type for arg in self.arguments],
             has_const=self.has_const)
Example #3
0
 def function_type(self):
     """returns function type. See L{type_t} hierarchy"""
     return cpptypes.free_function_type_t( return_type=self.return_type
                                  , arguments_types=[ arg.type for arg in self.arguments ] )
Example #4
0
 def function_type(self):
     """returns function type. See :class:`type_t` hierarchy"""
     return cpptypes.free_function_type_t(
         return_type=self.return_type,
         arguments_types=[arg.type for arg in self.arguments])