2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 19:12:16 +00:00

no message

[SVN r17874]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-13 00:58:17 +00:00
parent 0262c3bba9
commit 5788cc83f3

View File

@@ -334,7 +334,7 @@ class ClassExporter(Exporter):
def ExportVirtualMethods(self):
# check if this class has any virtual methods
has_virtual_methods = False
for member in self.class_.members:
for member in self.public_members:
if type(member) == Method and member.virtual:
has_virtual_methods = True
break
@@ -605,7 +605,7 @@ class _VirtualWrapperGenerator(object):
param_names_str = ', '.join(param_names)
if param_names_str:
param_names_str = ', ' + param_names_str
decl += indent*2 + '%s%scall_method<%s>(self, "%s"%s);\n' %\
decl += indent*2 + '%s%scall_method< %s >(self, "%s"%s);\n' %\
(return_str, python, result, rename, param_names_str)
decl += indent + '}\n'
@@ -675,11 +675,15 @@ class _VirtualWrapperGenerator(object):
def VirtualMethods(self):
return [m for m in self.class_.members if type(m) == Method and m.virtual]
def IsVirtual(m):
return type(m) == Method and m.virtual and m.visibility == Scope.public
return [m for m in self.class_.members if IsVirtual(m)]
def Constructors(self):
return [m for m in self.class_.members if isinstance(m, Constructor)]
def IsValid(m):
return isinstance(m, Constructor) and m.visibility == Scope.public
return [m for m in self.class_.members if IsValid(m)]
def GenerateDefinitions(self):