Re: [pygccxml-development] Future freeze
Brought to you by:
mbaas,
roman_yakovenko
|
From: Allen B. <al...@vr...> - 2006-10-10 13:15:14
|
Ok.
Well, then I have a method in goodies that tries to finalize a class.
It looks like this:
-------------------------------------
def finalize(cls, finalize_pure_virtuals=True):
if isinstance(cls, pd.mdecl_wrapper_t):
for x in cls:
finalize(x)
else:
matcher = pd.virtuality_type_matcher( pd.VIRTUALITY_TYPES.VIRTUAL )
if finalize_pure_virtuals:
matcher = matcher | pd.virtuality_type_matcher(
pd.VIRTUALITY_TYPES.PURE_VIRTUAL)
members = cls.decls( matcher,
decl_type=pd.member_calldef_t,
allow_empty=True)
members.set_virtuality( pd.VIRTUALITY_TYPES.NOT_VIRTUAL )
--------------------------------------
This gets rid of all the virtuals but there are still some things left
over that make Py++ create a wrapper. Any hints at what other things
will make Py++ create wrappers?
-Allen
|