[C++-sig] More pyplusplus custom stuff

Niall Douglas s_sourceforge at nedprod.com
Fri Jun 16 21:34:17 CEST 2006


On 15 Jun 2006 at 21:30, Roman Yakovenko wrote:

> 1. add pyplusplus.decl_wrappers.constructor_t new property
>     body ( string )
> 
> 2.  add code that insert this member variable into generated code in
> next classes:
>      pyplusplus.code_creators.
>          constructor_wrapper_t
>          special_constructor_wrapper_t
>          trivial_constructor_wrapper_t

Firstly, I attach modified pyplusplus source implementing your 
suggestion.

For special_constructor_wrapper_t and trivial_constructor_wrapper_t, 
self.declaration refers to a decl_wrapper.class_t rather than 
decl_wrapper.constructor_t. AFAICS trivial constructors are really 
compiler generated null constructors while special constructors are 
really copy constructors. Therefore, you'd probably want to be able 
to set each individually so I split them into a series of properties. 
I have a new function which sets all constructor bodies.

Cheers,
Niall



-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  calldef.py
     Date:  16 Jun 2006, 15:03
     Size:  48750 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: calldef.py
Type: application/octet-stream
Size: 48749 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060616/06f3bb59/attachment.obj>
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  class_wrapper.py
     Date:  16 Jun 2006, 15:02
     Size:  5402 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_wrapper.py
Type: application/octet-stream
Size: 5401 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060616/06f3bb59/attachment-0001.obj>
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  calldef_wrapper.py
     Date:  16 Jun 2006, 14:27
     Size:  13426 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: calldef_wrapper.py
Type: application/octet-stream
Size: 13426 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060616/06f3bb59/attachment-0002.obj>


More information about the Cplusplus-sig mailing list