yield method
raise StopIteration
+ def iterBaseMethods(self):
+ if self.base is not None:
+ for iface, method in self.base.iterBaseMethods():
+ yield iface, method
+ for method in self.methods:
+ yield self, method
+ raise StopIteration
+
class Method(Function):
- def __init__(self, type, name, args):
- Function.__init__(self, type, name, args, call = '__stdcall')
+ def __init__(self, type, name, args, const=False, sideeffects=True):
+ Function.__init__(self, type, name, args, call = '__stdcall', sideeffects=sideeffects)
for index in range(len(self.args)):
self.args[index].index = index + 1
+ self.const = const
+
+ def prototype(self, name=None):
+ s = Function.prototype(self, name)
+ if self.const:
+ s += ' const'
+ return s
class String(Type):