示例#1
0
 def _callback (self, params):
     
     args = []
     list = List.from_pointer (ctypes.c_void_p (params))
     
     for val in list:
         args.append (val.get())
     
     
     # class method
     if self._self_object is not None:
         ret = self._callback_func (self._self_object(), *args)
     else:
         ret = self._callback_func (*args)
     
     
     if isinstance (ret, Value):
         _lib.myelin_value_ref (ret)
         return ret._ptr
     
     else:
         val = Value()
         
         if ret is not None:
             val.set (ret)
         
         _lib.myelin_value_ref (val)
         return val._ptr
示例#2
0
 def get_param_types (self):
     list = _lib.myelin_constructor_get_param_types (self)
     return List.from_pointer (list)
示例#3
0
 def get_param_types (self):
     list = _lib.myelin_function_type_get_param_types (self)
     return List.from_pointer (list)
示例#4
0
 def get_classes (self):
     list = _lib.myelin_namespace_get_classes (self)
     return List.from_pointer (list)
示例#5
0
 def get_namespaces (self):
     list = _lib.myelin_repository_get_namespaces (self)
     return List.from_pointer (list)
示例#6
0
文件: class_.py 项目: gsterjov/Myelin
 def get_all_functions (self):
     list = _lib.myelin_class_get_all_functions (self)
     return List.from_pointer (list)
示例#7
0
文件: class_.py 项目: gsterjov/Myelin
 def get_constructors (self):
     list = _lib.myelin_class_get_constructors (self)
     return List.from_pointer (list)
示例#8
0
文件: class_.py 项目: gsterjov/Myelin
 def get_bases (self):
     list = _lib.myelin_class_get_bases (self)
     return List.from_pointer (list)